Translate the value of the text field (#2942)

It is a useful feature, if you like to add translatable value.
This commit is contained in:
Szabó Gergő 2017-06-26 17:38:31 +02:00 committed by Luke Towers
parent e3a567cb78
commit f7f507dbdc

View File

@ -6,11 +6,11 @@
type="text"
name="<?= $field->getName() ?>"
id="<?= $field->getId() ?>"
value="<?= e($field->value) ?>"
value="<?= e(trans($field->value)) ?>"
placeholder="<?= e(trans($field->placeholder)) ?>"
class="form-control"
autocomplete="off"
<?= $field->hasAttribute('maxlength') ? '' : 'maxlength="255"' ?>
<?= $field->getAttributes() ?>
/>
<?php endif ?>
<?php endif ?>