Blame view

app/main/templates/agents.html 1.08 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
19
    <th scope="col">Charge</th>
    <th scope="col">Projets</th>
d6836d5e   hitier   Agents list
20
21
  </tr>
  </thead>
3dae0d18   hitier   Projects list
22
  <tbody>
d6836d5e   hitier   Agents list
23
24
  {% for agent in agents %}
  <tr>
527a6709   hitier   In agents list, L...
25
26
27
28
    <td><a href="{{url_for('main.agent', agent_id=agent.id)}}">
      {{ agent.firstname }}
      {{ agent.secondname }}
    </a></td>
a7537589   hitier   Display charges i...
29
    <td>{{agent.total_charge / 100}}</td>
2cb0a345   hitier   Add 2 columns in ...
30
    <td>{{agent.num_projects}}</td>
d6836d5e   hitier   Agents list
31
32
  </tr>
  {% endfor %}
3dae0d18   hitier   Projects list
33
  </tbody>
d6836d5e   hitier   Agents list
34
</table>
73162524   Anais Amato   make Tables 'list...
35
36
37
38
39
40
{% endblock %}


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