2015-01-29 09:32:24 +00:00
|
|
|
<?php if (!$field->hidden): ?>
|
2014-05-14 13:24:20 +00:00
|
|
|
|
2015-03-03 09:24:14 +00:00
|
|
|
<?php if (!$this->showFieldLabels($field)): ?>
|
2014-05-14 13:24:20 +00:00
|
|
|
|
2015-03-03 09:24:14 +00:00
|
|
|
<?= $this->renderFieldElement($field) ?>
|
2014-05-14 13:24:20 +00:00
|
|
|
|
2015-01-29 09:32:24 +00:00
|
|
|
<?php else: ?>
|
2016-02-26 22:46:00 +00:00
|
|
|
<?php
|
|
|
|
|
$fieldComment = $field->commentHtml ? trans($field->comment) : e(trans($field->comment));
|
|
|
|
|
?>
|
2014-05-14 13:24:20 +00:00
|
|
|
|
2015-01-29 09:32:24 +00:00
|
|
|
<?php if ($field->label): ?>
|
|
|
|
|
<label for="<?= $field->getId() ?>">
|
|
|
|
|
<?= e(trans($field->label)) ?>
|
|
|
|
|
</label>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
|
|
<?php if ($field->comment && $field->commentPosition == 'above'): ?>
|
2016-02-26 22:46:00 +00:00
|
|
|
<p class="help-block before-field"><?= $fieldComment ?></p>
|
2015-01-29 09:32:24 +00:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
|
|
<?= $this->renderFieldElement($field) ?>
|
2014-05-14 13:24:20 +00:00
|
|
|
|
2015-01-29 09:32:24 +00:00
|
|
|
<?php if ($field->comment && $field->commentPosition == 'below'): ?>
|
2016-02-26 22:46:00 +00:00
|
|
|
<p class="help-block"><?= $fieldComment ?></p>
|
2015-01-29 09:32:24 +00:00
|
|
|
<?php endif ?>
|
2014-05-14 13:24:20 +00:00
|
|
|
|
|
|
|
|
<?php endif ?>
|
2014-06-29 03:35:47 +00:00
|
|
|
|
|
|
|
|
<?php endif ?>
|