mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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:
parent
e3a567cb78
commit
f7f507dbdc
@ -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 ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user