Support form field commentHtml flag for section, checkbox, and switch types (#3150)
This commit is contained in:
parent
161d81a192
commit
263200fd7b
|
|
@ -18,6 +18,6 @@
|
|||
<?= e(trans($field->label)) ?>
|
||||
</label>
|
||||
<?php if ($field->comment): ?>
|
||||
<p class="help-block"><?= e(trans($field->comment)) ?></p>
|
||||
<p class="help-block"><?= $field->commentHtml ? trans($field->comment) : e(trans($field->comment)) ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@
|
|||
<?php endif ?>
|
||||
|
||||
<?php if ($field->comment): ?>
|
||||
<p class="help-block"><?= e(trans($field->comment)) ?></p>
|
||||
<p class="help-block"><?= $field->commentHtml ? trans($field->comment) : e(trans($field->comment)) ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="field-switch">
|
||||
<label><?= e(trans($field->label)) ?></label>
|
||||
<?php if ($field->comment): ?>
|
||||
<p class="help-block"><?= e(trans($field->comment)) ?></p>
|
||||
<p class="help-block"><?= $field->commentHtml ? trans($field->comment) : e(trans($field->comment)) ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue