Fix: var check order

This commit is contained in:
Aroy-Art 2024-07-07 23:13:18 +02:00
parent 66184314cd
commit d22093d1d1
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -57,7 +57,7 @@
{% for radio in form.mature %} {% for radio in form.mature %}
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<label for="{{ radio.id_for_label }}">{{ radio.choice_label }}</label> <label for="{{ radio.id_for_label }}">{{ radio.choice_label }}</label>
<input class="form-check-input" type="radio" name="mature" value="{{ radio.data.value }}" id="{{ radio.id_for_label }}" {% if form.mature.initial == radio.data.value %}checked{% endif %}> <input class="form-check-input" type="radio" name="mature" value="{{ radio.data.value }}" id="{{ radio.id_for_label }}" {% if radio.data.value == form.mature.initial %}checked{% endif %}>
</div> </div>
{% endfor %} {% endfor %}
@ -67,6 +67,7 @@
</form> </form>
<hr> <hr>
</div> </div>
</div> </div>
</div> </div>