Unqiue id for progress fields
This commit is contained in:
parent
6d17b83c8c
commit
5cdfd29f9e
|
@ -5,7 +5,7 @@
|
||||||
type="number"
|
type="number"
|
||||||
name="progress"
|
name="progress"
|
||||||
class="input"
|
class="input"
|
||||||
id="id_progress_{{ readthrough.id }}"
|
id="id_progress_{{ readthrough.id }}{{ controls_uid }}"
|
||||||
value="{{ readthrough.progress }}"
|
value="{{ readthrough.progress }}"
|
||||||
{% if progress_required %}required{% endif %}
|
{% if progress_required %}required{% endif %}
|
||||||
>
|
>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block reading-dates %}
|
{% block reading-dates %}
|
||||||
<label for="id_progress_{{ readthrough.id }}" class="label">{% trans "Progress:" %}</label>
|
<label for="id_progress_{{ readthrough.id }}{{ controls_uid }}" class="label">{% trans "Progress:" %}</label>
|
||||||
{% include "snippets/progress_field.html" with progress_required=True %}
|
{% include "snippets/progress_field.html" with progress_required=True %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</div>
|
</div>
|
||||||
{# Only show progress for editing existing readthroughs #}
|
{# Only show progress for editing existing readthroughs #}
|
||||||
{% if readthrough.id and not readthrough.finish_date %}
|
{% if readthrough.id and not readthrough.finish_date %}
|
||||||
<label class="label" for="id_progress_{{ readthrough.id }}">
|
<label class="label" for="id_progress_{{ readthrough.id }}{{ controls_uid }}">
|
||||||
{% trans "Progress" %}
|
{% trans "Progress" %}
|
||||||
</label>
|
</label>
|
||||||
{% include "snippets/progress_field.html" %}
|
{% include "snippets/progress_field.html" %}
|
||||||
|
|
Loading…
Reference in New Issue