agents.html
1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends "base_page.html" %}
{% block more_heads %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/buttons.dataTables.min.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/datatables.min.css') }}"/>
{% endblock %}
{% block content %}
<!-- Invisible span to definte wich ul and a in the navbar are actived -->
<span id="nav_actived" style="display: none">agent,liste_agents</span>
<table id="table_datatables" class="table table-hover">
<thead>
<tr>
<th scope="col">Nom</th>
<th scope="col">Projets</th>
<th scope="col">Charge</th>
<th scope="col" class="col-1">Éditer</th>
</tr>
</thead>
<tbody>
{% for agent in agents %}
<tr>
<td><a href="{{url_for('main.agent', agent_id=agent.id)}}">
{{ agent.firstname }}
{{ agent.secondname }}
</a></td>
<td>{{agent.num_projects}}</td>
<td>{{agent.total_charge / 100}}</td>
<td>{{ commons.edit_link(url_for('main.agent_edit', agent_id=agent.id)) }}
{{ commons.delete_link( url_for('main.agent_delete', agent_id=agent.id)) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block more_scripts %}
{% include 'datatables-includes.html' %}
{% endblock %}