Add user cards view
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
37
inventory-app/templates/doorboy_user.html
Normal file
37
inventory-app/templates/doorboy_user.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
|
||||
<h4>Doorboy info for {{subject_user.username | display_name}}</h4>
|
||||
<br/>
|
||||
<h5>Users cards:</h5>
|
||||
<table class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Enabled</th>
|
||||
<th>Comment</th>
|
||||
<th>UID hash tail</th>
|
||||
<th>Last seen</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for c in cards %}
|
||||
<tr>
|
||||
<td>{% if c.token.enabled %}<i class="material-icons">check_circle</i>{% else %} {% endif %}</td>
|
||||
<td>{{ c.token.comment }}</td>
|
||||
<td><a href="/m/doorboy/{{ c._id }}/events">{{ c.token.uid_hash[-6:] }}</a></td>
|
||||
<td>{{ c.last_seen | timeago }}</td>
|
||||
<td>
|
||||
{% if is_self %}
|
||||
<a href="/m/doorboy/{{ c._id }}/edit" class="waves-effect waves-light btn"><i class="material-icons left">edit</i>Edit</a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user