Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {%- block widget_attributes -%}
- id="{{ id }}" name="{{ full_name }}"
- {%- if read_only %} readonly="readonly"{% endif -%}
- {%- if disabled %} data-disabled="disabled"{% endif -%}
- {%- if required %} required="required"{% endif -%}
- {%- for attrname, attrvalue in attr -%}
- {{- " " -}}
- {%- if attrname in ['placeholder', 'title'] -%}
- {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}"
- {%- elseif attrvalue is sameas(true) -%}
- {{- attrname }}="{{ attrname }}"
- {%- elseif attrvalue is not sameas(false) -%}
- {{- attrname }}="{{ attrvalue }}"
- {%- endif -%}
- {%- endfor -%}
- {%- endblock widget_attributes -%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement