Blame view

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

{% block more_heads %}
11b5b6f8   hitier   Fix css file path
4
<link href="{{ url_for('main.static', filename='css/charges.css') }}" rel="stylesheet" type="text/css"/>
d7a4e41b   hitier   New project page:...
5
6
7
{% endblock %}

{% block content %}
de63cb72   hitier   Add title to proj...
8
<div class="charge_chart" id="project_services_chart"></div>
54e2baa6   hitier   Add charge charts...
9
<hr/>
de63cb72   hitier   Add title to proj...
10
<div class="charge_chart" id="project_capacities_chart"></div>
54e2baa6   hitier   Add charge charts...
11
<hr/>
0d6506cb   hitier   New project_charg...
12
13
14
15
<table id="charge_table">
  <thead>
  <tr>
    {% for header in charges[0] %}
b9d90810   hitier   Tweak charges tab...
16
    <th>{{header}}</th>
0d6506cb   hitier   New project_charg...
17
18
19
20
21
22
23
24
25
26
27
28
29
    {% 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:...
30
31
32
{% endblock %}

{% block more_scripts %}
54e2baa6   hitier   Add charge charts...
33
34
35
36
{% include 'd3js-includes.html' %}
<script src="{{ url_for('main.static', filename='js/charges.js') }}" type="text/javascript"></script>
<script>
  build_chart("#project_services_chart",
de63cb72   hitier   Add title to proj...
37
38
39
      "{{url_for('main.charge_project_csv', project_id=project.id, category='service')}}",
      "{{project.name}}",
      "service");
54e2baa6   hitier   Add charge charts...
40
  build_chart("#project_capacities_chart",
de63cb72   hitier   Add title to proj...
41
42
43
      "{{url_for('main.charge_project_csv', project_id=project.id, category='capacity')}}",
      "{{project.name}}",
      "capacity");
54e2baa6   hitier   Add charge charts...
44
</script>
d7a4e41b   hitier   New project page:...
45
{% endblock %}