Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

form.part copy 2.php 960B

12345678910111213141516171819202122232425
  1. <?php if(is_array($this->view->structure)): ?>
  2. <?php $counter = 0; ?>
  3. <?php foreach($this->view->structure as $group_index => $structure): ?>
  4. <div class="form-row">
  5. <?php if(!is_null($structure['group']['label'])): ?>
  6. <?php if (trim($structure['group']['label']) != ''): ?>
  7. <div class="form-group col-lg-12 margin-bottom-40 margin-top-40">
  8. <div class="strike-center strike-large"><span><?php echo $structure['group']['label']; ?></span></div>
  9. </div>
  10. <?php else: ?>
  11. <?php if ($structure['group']['separator']): ?>
  12. <div class="form-group col-lg-12 margin-top-40"><hr></div>
  13. <?php endif; ?>
  14. <?php endif; ?>
  15. <?php endif; ?>
  16. <?php foreach($structure['items'] as $item_index => $item): ?>
  17. <?php echo $this->partial('Survey/input', ['type'=>$item['type'], 'group'=>$group_index, 'index'=>$counter, 'item'=>$item]); ?>
  18. <?php $counter++; ?>
  19. <?php endforeach; ?>
  20. </div>
  21. <?php endforeach; ?>
  22. <?php endif; ?>