You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

form.part copy.php 931B

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