form-element.phtml 867 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @version 7.6
  4. */
  5. $label = $element->getLabel();
  6. $description = $element->getDescription();
  7. $subtitle = $element->getSubtitle();
  8. if (!$element->isHidden()) { ?>
  9. <?php if (!empty($subtitle)) { ?>
  10. <h4 class="headline">
  11. <i class="fa fa-angle-right"></i>
  12. <span><?php echo $subtitle; ?></span>
  13. </h4>
  14. <?php } ?>
  15. <div class="form-group">
  16. <label class="col-sm-3 control-label">
  17. <?php if (!empty($label)) { ?>
  18. <?php echo $label; ?>
  19. <?php } ?>
  20. </label>
  21. <div class="col-sm-9">
  22. <?php echo $element->render(); ?>
  23. <?php if (!empty($description)) { ?>
  24. <span class="help-block">
  25. <?php echo $description; ?>
  26. </span>
  27. <?php } ?>
  28. </div>
  29. </div>
  30. <?php } ?>