Blame view

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


{% block more_heads %}
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css"/>
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.7.0/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 %}

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

<!-- Invisible span to definte wich ul and a in the navbar are actived -->
<span id="nav_actived" style="display: none">agent,agents</span>

73162524   Anais Amato   make Tables 'list...
15
<table id="table_datatables" class="table table-hover">
d6836d5e   hitier   Agents list
16
17
18
  <thead>
  <tr>
    <th scope="col">Nom</th>
2cb0a345   hitier   Add 2 columns in ...
19
20
    <th scope="col">Charge</th>
    <th scope="col">Projets</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>
a7537589   hitier   Display charges i...
30
    <td>{{agent.total_charge / 100}}</td>
2cb0a345   hitier   Add 2 columns in ...
31
    <td>{{agent.num_projects}}</td>
d6836d5e   hitier   Agents list
32
33
  </tr>
  {% endfor %}
3dae0d18   hitier   Projects list
34
  </tbody>
d6836d5e   hitier   Agents list
35
</table>
73162524   Anais Amato   make Tables 'list...
36
37
38
39
40
41
{% endblock %}


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