Blame view

app/main/templates/agent.html 1.07 KB
d9f5cfc9   hitier   New agent page dy...
1
{% extends "base_page.html" %}
04e2a90d   hitier   Show agent charge...
2
3

{% block more_heads %}
76739351   hitier   Versionize any cu...
4
<link href="{{ url_for('main.static', filename='css/charges.css', version=config.VERSION) }}" rel="stylesheet" type="text/css"/>
04e2a90d   hitier   Show agent charge...
5
6
{% endblock %}

d9f5cfc9   hitier   New agent page dy...
7
{% block content %}
c8b7caf5   hitier   Agent now uses co...
8
<div id="projects_chart" class="charge_chart"></div>
70da5dd5   hitier   Insert charges ta...
9
10
11
12
<table id="charge_table">
  <thead>
  <tr>
  {% for header in charges[0] %}
b9d90810   hitier   Tweak charges tab...
13
    <th>{{header}}</th>
70da5dd5   hitier   Insert charges ta...
14
15
16
17
18
19
  {% endfor %}
  </tr>
  </thead>
  <tbody>
  {% for line in charges[1:] %}
  <tr>
796a5688   hitier   Add % sign in cha...
20
21
22
23
24
25
    {% for i in range(line|length) %}
      {%if  'Charge' in charges[0][i]  %}
        <td>{{line[i]}} %</td>
      {%else%}
        <td>{{line[i]}}</td>
      {%endif%}
70da5dd5   hitier   Insert charges ta...
26
27
28
29
30
31
    {% endfor %}
  </tr>
  {% endfor %}

  </tbody>
</table>
d9f5cfc9   hitier   New agent page dy...
32
{% endblock %}
04e2a90d   hitier   Show agent charge...
33
34


d9f5cfc9   hitier   New agent page dy...
35
{% block more_scripts %}
b15e4db5   hitier   Tooltip on mouseo...
36
{% include 'd3js-includes.html' %}
76739351   hitier   Versionize any cu...
37
<script src="{{ url_for('main.static', filename='js/charges.js', version=config.VERSION) }}" type="text/javascript"></script>
b15e4db5   hitier   Tooltip on mouseo...
38
<script>
c8b7caf5   hitier   Agent now uses co...
39
40
  build_chart("#projects_chart",
      "{{url_for('main.charge_agent_csv', agent_id=agent.id)}}",
50928b07   hitier   Fix agent name as...
41
      "{{agent.secondname}}"+ " {{agent.firstname}}",
c8b7caf5   hitier   Agent now uses co...
42
      "project");
b15e4db5   hitier   Tooltip on mouseo...
43
</script>
d9f5cfc9   hitier   New agent page dy...
44
{% endblock %}