allerta-vvf/server/templates/list.html

83 lines
2.0 KiB
HTML
Raw Normal View History

2020-04-27 23:27:39 +02:00
{% extends "base.html" %}
{% block content %}
<br>
<div class="text-center">
2020-07-03 11:38:41 +02:00
<p>{{ 'Are you available in case of alert?'|t }}</p>
2020-09-27 12:37:17 +02:00
<button class="btn btn-lg btn-success " onclick="Activate('{{ user.id }}')">{{ 'Activate'|t }}</button>
2020-04-27 23:27:39 +02:00
2020-09-27 12:37:17 +02:00
<button class="btn btn-lg btn-danger" style="background-color: red" onclick="Deactivate('{{ user.id }}')">{{ 'Deactivate'|t }}</button>
2020-04-27 23:27:39 +02:00
</div>
<br>
<br>
2020-09-27 00:57:37 +02:00
<img alt="VVF" src="./resources/images/owner.png" width="150" style="display: block; margin-left: auto; margin-right: auto;">
2020-04-27 23:27:39 +02:00
<br>
<br>
<style>
2020-06-17 22:48:10 +02:00
#add {
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
font: bold 12px Arial, Helvetica, sans-serif;
color: #fff;
padding: 10px 20px;
border: solid 1px #0076a3;
background: #0095cd;
}
2020-09-02 17:31:41 +02:00
2020-06-17 22:48:10 +02:00
#href {
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
font: bold 12px Arial, Helvetica, sans-serif;
color: #fff;
padding: 10px 20px;
border: solid 1px #0076a3;
background: #0095cd;
}
th, td {
border: 1px solid grey;
border-collapse: collapse;
padding: 5px;
}
table {
box-shadow: 2px 2px 25px rgba(0,0,0,0.5);
border-radius: 15px;
margin: auto;
}
2020-06-17 22:48:10 +02:00
</style>
2020-10-22 15:03:45 +02:00
<div id="list" style="overflow-x:auto;">
<table style="width: 90%; text-align:center;">
<thead>
<tr>
<th>{{ 'Name'|t }}</th>
<th>{{ 'Available'|t }}</th>
{% if user.full_viewer %}
<th>{{ 'Driver'|t }}</th>
<th>{{ 'Call'|t }}</th>
<th>{{ 'Write'|t }}</th>
<th>{{ 'Services'|t }}</th>
<th>{{ 'Availability Minutes'|t }}</th>
<th>{{ 'Other'|t }}</th>
{% endif %}
</tr>
</thead>
<tbody id="table_body">
</tbody>
</table>
<script>
2020-11-05 00:08:54 +01:00
window.loadTable("list");
</script>
</div>
<br><br>
<p style="text-align: center;">
<a id='add' href="edit_user.php?add">{{ 'Add user'|t }}</a>
</p>
<br>
<br>
2020-04-27 23:27:39 +02:00
{% endblock %}