Blame view

app/main/templates/project.html 1.27 KB
d7a4e41b   hitier   New project page:...
1
2
3
{% extends "base_page.html" %}

{% 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"/>
d7a4e41b   hitier   New project page:...
5
6
7
{% endblock %}

{% block content %}
9f86aeea   Anais Amato   Change navbar act...
8
9
10
<!-- Invisible span to definte wich ul and a in the navbar are actived -->
<span id="nav_actived" style="display: none">projet,projects</span>

de63cb72   hitier   Add title to proj...
11
<div class="charge_chart" id="project_services_chart"></div>
54e2baa6   hitier   Add charge charts...
12
<hr/>
de63cb72   hitier   Add title to proj...
13
<div class="charge_chart" id="project_capacities_chart"></div>
54e2baa6   hitier   Add charge charts...
14
<hr/>
0d6506cb   hitier   New project_charg...
15
16
17
18
<table id="charge_table">
  <thead>
  <tr>
    {% for header in charges[0] %}
b9d90810   hitier   Tweak charges tab...
19
    <th>{{header}}</th>
0d6506cb   hitier   New project_charg...
20
21
22
23
24
25
26
27
28
29
30
31
32
    {% endfor %}
  </tr>
  </thead>
  <tbody>
  {% for line in charges[1:] %}
  <tr>
    {% for cell in line %}
    <td>{{cell}}</td>
    {% endfor %}
  </tr>
  {% endfor %}
  </tbody>
</table>
d7a4e41b   hitier   New project page:...
33
34
35
{% endblock %}

{% block more_scripts %}
54e2baa6   hitier   Add charge charts...
36
{% include 'd3js-includes.html' %}
5e6f4e07   hitier   Set Rokotyan Solu...
37
{% include 'charges-includes.html' %}
54e2baa6   hitier   Add charge charts...
38
39
<script>
  build_chart("#project_services_chart",
de63cb72   hitier   Add title to proj...
40
41
42
      "{{url_for('main.charge_project_csv', project_id=project.id, category='service')}}",
      "{{project.name}}",
      "service");
54e2baa6   hitier   Add charge charts...
43
  build_chart("#project_capacities_chart",
de63cb72   hitier   Add title to proj...
44
45
46
      "{{url_for('main.charge_project_csv', project_id=project.id, category='capacity')}}",
      "{{project.name}}",
      "capacity");
54e2baa6   hitier   Add charge charts...
47
</script>
d7a4e41b   hitier   New project page:...
48
{% endblock %}