Use label_tag to add punctuation

This commit is contained in:
Tom Hubrecht 2020-12-19 15:28:32 +01:00
parent d418fd9e3d
commit bc7967f01a
8 changed files with 67 additions and 68 deletions

View file

@ -1,5 +1,4 @@
{% load bulma_utils %}
{% load i18n %}
{% load bulma_utils i18n %}
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field.label }}

View file

@ -1,6 +1,6 @@
{% if errors %}
{% if form.non_field_errors %}
<div class="message is-danger">
{% if form.non_field_errors %}
<div class="message is-danger">
<div class="message-header">
<button class="delete" aria-label="delete"></button>
</div>
@ -9,14 +9,14 @@
{{ non_field_error }}
{% endfor %}
</div>
</div>
{% endif %}
</div>
{% endif %}
{% endif %}
{% for field in form.hidden_fields %}
{{ field }}
{{ field }}
{% endfor %}
{% for field in form.visible_fields %}
{% include 'elections/forms/field.html' %}
{% include 'elections/forms/field.html' %}
{% endfor %}

View file

@ -1,7 +1,7 @@
{% load bulma_utils %}
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field.label }}
{{ field.label_tag }}
</label>
<div class="control">

View file

@ -1,7 +1,7 @@
{% if field.auto_id %}
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}" for="{{ field.auto_id }}">
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}" for="{{ field.auto_id }}">
{{ field.label }}
</label>
</label>
{% endif %}
<div class="control {% if field|is_multiple_checkbox %}multiple-checkbox{% endif %}">

View file

@ -1,7 +1,7 @@
{% if field.auto_id %}
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field.label }}
</label>
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field.label_tag }}
</label>
{% endif %}
<div class="control">

View file

@ -1,7 +1,7 @@
{% load bulma_utils %}
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field.label }}
{{ field.label_tag }}
</label>
<div class="control">

View file

@ -1,7 +1,7 @@
{% load bulma_utils %}
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field.label }}
{{ field.label_tag }}
</label>
<div class="control">