famille: correct for id relation in reservation-recurentes widget (#87893)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Thomas Jund 2024-03-07 16:19:48 +01:00
parent b40f288b0b
commit 1018bbbc97
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@
{% regroup widget.get_options by options.day as options_list %}
{% for day, options in options_list %}
{% for option in options %}
<li data-date="{{ option.options.date }}"><label for="{{ widget.get_name_for_id }}_op_{{ forloop.counter0 }}"><input
id="{{ widget.get_name_for_id }}_op_{{ forloop.counter0 }}"
<li data-date="{{ option.options.date }}"><label for="{{ widget.get_name_for_id }}_op_{{ forloop.parentloop.counter0 }}_{{ forloop.counter0 }}"><input
id="{{ widget.get_name_for_id }}_op_{{ forloop.parentloop.counter0 }}_{{ forloop.counter0 }}"
{% if option.selected %}checked="checked"
{% elif widget.readonly or option.disabled %}disabled{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}