Blame view

app/main/templates/agent.html 975 Bytes
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
20
21
22
23
24
25
26
27
  {% endfor %}
  </tr>
  </thead>
  <tbody>
  {% for line in charges[1:] %}
  <tr>
    {% for cell in line %}
      <td>{{cell}}</td>
    {% endfor %}
  </tr>
  {% endfor %}

  </tbody>
</table>
d9f5cfc9   hitier   New agent page dy...
28
{% endblock %}
04e2a90d   hitier   Show agent charge...
29
30


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