Skip to content

Commit

Permalink
added model representing mpsks clients
Browse files Browse the repository at this point in the history
added a model for sipa representing mpsks clients
#498
  • Loading branch information
agmes4 committed Jan 19, 2025
1 parent b85e0be commit e682b6e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions sipa/model/mspk_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


class MPSKClientEntry:
mac: str
name: str
id: int

def __init__(self, mac: str, name: str, id: int):
self.mac = mac
self.name = name
self.id = id
8 changes: 4 additions & 4 deletions sipa/templates/usersuite/mpsks_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
{% for client in clients %}
<tr>

<td>{{ client[0] }}</td>
<td>{{ client[1] }}</td>
<td>{{ client.name }}</td>
<td>{{ client.mac }}</td>
<td>
<a href="{{ url_for('usersuite.change_mpsks', name=client[0], mac=client[1]) }}">
<a href="{{ url_for('usersuite.change_mpsks',mpsk_id=client.id) }}">
<span class="bi-pencil-fill ms-auto"></span>
</a>
<a href="{{ url_for('usersuite.delete_mpsk', mac=client[1]) }}">
<a href="{{ url_for('usersuite.delete_mpsk', mpsk_id=client.id) }}">
<span class="bi-trash-fill ms-auto"></span>
</a>
</td>
Expand Down

0 comments on commit e682b6e

Please sign in to comment.