WebHost: Fixing default values for LocationSets (#3374)

* Update macros.html

* Update macros.html
This commit is contained in:
Exempt-Medic 2024-05-22 19:58:06 -04:00 committed by GitHub
parent 0ea20f3929
commit 1ae0a9b76f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@
{% for group_name in world.location_name_groups.keys()|sort %} {% for group_name in world.location_name_groups.keys()|sort %}
{% if group_name != "Everywhere" %} {% if group_name != "Everywhere" %}
<div class="option-entry"> <div class="option-entry">
<input type="checkbox" id="{{ option_name }}-{{ group_name }}" name="{{ option_name }}" value="{{ group_name }}" {{ "checked" if grop_name in option.default }} /> <input type="checkbox" id="{{ option_name }}-{{ group_name }}" name="{{ option_name }}" value="{{ group_name }}" {{ "checked" if group_name in option.default }} />
<label for="{{ option_name }}-{{ group_name }}">{{ group_name }}</label> <label for="{{ option_name }}-{{ group_name }}">{{ group_name }}</label>
</div> </div>
{% endif %} {% endif %}

View File

@ -142,7 +142,7 @@
{% for group_name in world.location_name_groups.keys()|sort %} {% for group_name in world.location_name_groups.keys()|sort %}
{% if group_name != "Everywhere" %} {% if group_name != "Everywhere" %}
<div class="set-entry"> <div class="set-entry">
<input type="checkbox" id="{{ option_name }}-{{ group_name }}" name="{{ option_name }}||{{ group_name }}" value="1" {{ "checked" if grop_name in option.default }} /> <input type="checkbox" id="{{ option_name }}-{{ group_name }}" name="{{ option_name }}||{{ group_name }}" value="1" {{ "checked" if group_name in option.default }} />
<label for="{{ option_name }}-{{ group_name }}">{{ group_name }}</label> <label for="{{ option_name }}-{{ group_name }}">{{ group_name }}</label>
</div> </div>
{% endif %} {% endif %}