Browse Source

Merge pull request #667 from ivan1986/patch-1

change disabled to readonly
Thomas 13 năm trước cách đây
mục cha
commit
975e7fc136
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Resources/views/Form/silex_form_div_layout.html.twig

+ 1 - 1
Resources/views/Form/silex_form_div_layout.html.twig

@@ -284,7 +284,7 @@
 
 {% block widget_attributes %}
 {% spaceless %}
-    id="{{ id }}" name="{{ full_name }}"{% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if max_length %} maxlength="{{ max_length }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %}
+    id="{{ id }}" name="{{ full_name }}"{% if read_only %} readonly="readonly"{% endif %}{% if required %} required="required"{% endif %}{% if max_length %} maxlength="{{ max_length }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %}
     {% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %}
 {% endspaceless %}
 {% endblock widget_attributes %}