Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed HTML errors
  • Loading branch information
Nyholm committed Feb 26, 2018
commit cf7f00e67efd3c741ad325c7d8854650d787e83e
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
{% if type is not defined or type != 'hidden' %}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control' ~ (type|default('') == 'file' ? '-file' : ''))|trim}) -%}
{% endif %}
{% if type is defined and (type == 'range' or type == 'color') %}
{# Attribute "required" is not supported #}
{% set required = false %}
{% endif %}
{{- parent() -}}
{%- endblock form_widget_simple %}

Expand Down