allerta-vvf/server/templates/list.html

63 lines
1.7 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>
2020-09-02 17:31:41 +02:00
<div id="list"></div>
{% if user.full_viewer == false %}
2020-04-27 23:27:39 +02:00
<script>
$(document).ready(function() {
$( "#list" ).load("resources/ajax/ajax_list.php?"+Math.random());
2020-04-27 23:27:39 +02:00
setInterval(function() {
$( "#list" ).load("resources/ajax/ajax_list.php?"+Math.random());
2020-04-27 23:27:39 +02:00
}, 10000);
});
</script>
{% elseif user.full_viewer == true %}
2020-04-27 23:27:39 +02:00
<script>
$(document).ready(function() {
$( "#list" ).load("resources/ajax/ajax_admin_list.php?"+Math.random());
2020-04-27 23:27:39 +02:00
setInterval(function() {
$( "#list" ).load("resources/ajax/ajax_admin_list.php?"+Math.random());
2020-04-27 23:27:39 +02:00
}, 10000);
});
</script>
2020-06-17 22:48:10 +02:00
<style>
#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;
}
</style>
2020-04-27 23:27:39 +02:00
{% endif %}
<br>
<br>
{% endblock %}