Include attrs.html in form instance template
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
{% if field|widget_type == 'checkboxinput' %}
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input {% if field.value %}checked="checked"{% endif %} name="{% if form.prefix %}{{ form.prefix }}-{% endif %}{{ field.name }}" type="checkbox">
|
||||
<input {% if field.value %}checked="checked"{% endif %} name="{% if form.prefix %}{{ form.prefix }}-{% endif %}{{ field.name }}" type="checkbox" {% include 'django/forms/widgets/attrs.html' with widget=field.field.widget %} />
|
||||
{% if not hide_labels %}{{ field.label }}{% if field.field.required and not read_only %} ({% trans 'required' %}){% endif %}{% endif %}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -55,6 +55,7 @@ INSTALLED_APPS = (
|
||||
'django.contrib.messages',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.forms',
|
||||
# Allow using WhiteNoise in development
|
||||
'whitenoise.runserver_nostatic',
|
||||
'django.contrib.staticfiles',
|
||||
|
||||
Reference in New Issue
Block a user