some changes to fix dropdown selection

This commit is contained in:
2025-03-28 16:41:13 -04:00
parent 2d0247d0d9
commit 728061c504
2 changed files with 24 additions and 20 deletions

View File

@@ -20,13 +20,7 @@
<td><input type="text" id="mac_address-{{ user.mac_address }}" value="{{ user.mac_address }}"></td>
<td><input type="text" id="description-{{ user.mac_address }}" value="{{ user.description }}"></td>
<td>
<select id="vlan_id-{{ user.mac_address }}">
{% for group in groups %}
<option value="{{ group.groupname }}" {% if user.groupname == group.groupname %} selected {% endif %}>
{{ group.groupname }}
</option>
{% endfor %}
</select>
<input type="text" id="vlan_id-{{ user.mac_address }}" value="{{ user.vlan_id }}">
</td>
<td>
<button onclick="updateUser('{{ user.mac_address }}')"></button>