Skip to content

Commit a3ebefd

Browse files
committed
Merge branch '2.8' into 3.0
* 2.8: improved comment [FileSystem] Add support for Google App Engine. [2.8] fix mocks [Form] Fix BC break introduced in #14403
2 parents bd7b449 + ca90a61 commit a3ebefd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Resources/views/Form/widget_attributes.html.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"<?php if ($disabled): ?> disabled="disabled"<?php endif ?>
1+
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"<?php if ($read_only): ?> readonly="readonly"<?php endif ?>
2+
<?php if ($disabled): ?> disabled="disabled"<?php endif ?>
23
<?php if ($required): ?> required="required"<?php endif ?>
34
<?php foreach ($attr as $k => $v): ?>
5+
<?php if ('readonly' === $k) { continue; } ?>
46
<?php if (in_array($k, array('placeholder', 'title'), true)): ?>
57
<?php printf(' %s="%s"', $view->escape($k), $view->escape(false !== $translation_domain ? $view['translator']->trans($v, array(), $translation_domain) : $v)) ?>
68
<?php elseif ($v === true): ?>

0 commit comments

Comments
 (0)