personalizare

This commit is contained in:
2025-01-13 15:47:23 +02:00
parent d9e40f0d73
commit bea9d5c307
4 changed files with 10 additions and 11 deletions

View File

@@ -19,11 +19,12 @@
<h2>Groups</h2>
<ul>
{% for group_name, group in groups.items() %}
<li>
{{ group_name }} ({{ group.players | length }} players)
</li>
{% endfor %}
{% for group in groups %}
<li>
{{ group.name }} ({{ group.players | length }} players)
</li>
{% endfor %}
</ul>
<a href="{{ url_for('add_group') }}">Add Group</a>

View File

@@ -20,8 +20,8 @@
{% endfor %}
</optgroup>
<optgroup label="Groups">
{% for group_name in groups.keys() %}
<option value="{{ group_name }}">{{ group_name }}</option>
{% for group in groups %}
<option value="{{ group.id }}">{{ group.name }}</option>
{% endfor %}
</optgroup>
</select><br>