Blame view

app/main/templates/agents.html 1.28 KB
d6836d5e   hitier   Agents list
1
{% extends "base_page.html" %}
73162524   Anais Amato   make Tables 'list...
2
3
4


{% block more_heads %}
6845708c   Anais Amato   delete useless cd...
5
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/buttons.dataTables.min.css') }}"/>
73162524   Anais Amato   make Tables 'list...
6
7
8
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/datatables.min.css') }}"/>
{% endblock %}

d6836d5e   hitier   Agents list
9
{% block content %}
9f86aeea   Anais Amato   Change navbar act...
10
11

<!-- Invisible span to definte wich ul and a in the navbar are actived -->
fd63e06e   Anais Amato   update coloration...
12
<span id="nav_actived" style="display: none">agent,liste_agents</span>
9f86aeea   Anais Amato   Change navbar act...
13

73162524   Anais Amato   make Tables 'list...
14
<table id="table_datatables" class="table table-hover">
d6836d5e   hitier   Agents list
15
16
17
  <thead>
  <tr>
    <th scope="col">Nom</th>
2cb0a345   hitier   Add 2 columns in ...
18
    <th scope="col">Projets</th>
a27666a1   hitier   Fix project num i...
19
    <th scope="col">Charge</th>
2334e14a   hitier   Add edit/delete l...
20
    <th scope="col" class="col-1">Éditer</th>
d6836d5e   hitier   Agents list
21
22
  </tr>
  </thead>
3dae0d18   hitier   Projects list
23
  <tbody>
d6836d5e   hitier   Agents list
24
25
  {% for agent in agents %}
  <tr>
527a6709   hitier   In agents list, L...
26
27
28
29
    <td><a href="{{url_for('main.agent', agent_id=agent.id)}}">
      {{ agent.firstname }}
      {{ agent.secondname }}
    </a></td>
2cb0a345   hitier   Add 2 columns in ...
30
    <td>{{agent.num_projects}}</td>
a27666a1   hitier   Fix project num i...
31
    <td>{{agent.total_charge / 100}}</td>
2334e14a   hitier   Add edit/delete l...
32
33
    <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>
d6836d5e   hitier   Agents list
34
35
  </tr>
  {% endfor %}
3dae0d18   hitier   Projects list
36
  </tbody>
d6836d5e   hitier   Agents list
37
</table>
73162524   Anais Amato   make Tables 'list...
38
39
40
41
42
43
{% endblock %}


{% block more_scripts %}
{% include 'datatables-includes.html' %}
{% endblock %}