Blame view

app/main/templates/project.html 2.25 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>

5aabd083   hitier   Insert descriptio...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<div class="card">
  <div class="card-header">
    Fiche Projet
  </div>
  <div class="card-body">
    <dl class="row">
      <dt class="col-sm-2 text-right">ID :</dt>
      <dd class="col-sm-10 text-left">{{project.id}}</dd>
      {% for pl in project.labels %}
        <dt class="col-sm-2 text-right">{{pl.label.category.name}} :</dt>
        <dd class="col-sm-10 text-left">{{pl.label.name}}</dd>
      {% endfor %}
      <dt class="col-sm-2 text-right">Etat :</dt>
      <dd class="col-sm-10 text-left"></dd>
      <dt class="col-sm-2 text-right">Date RSP :</dt>
      <dd class="col-sm-10 text-left"></dd>
      <dt class="col-sm-2 text-right">Fiche projet :</dt>
      <dd class="col-sm-10 text-left"></dd>
      <dt class="col-sm-2 text-right">Date MAJ de la fiche :</dt>
      <dd class="col-sm-10 text-left"></dd>
      <dt class="col-sm-2 text-right">Commentaire :</dt>
      <dd class="col-sm-10 text-left"></dd>
    </dl>
    <a class="card-link disabled"   href="#">Modifier</a>
  </div>
</div>

de63cb72   hitier   Add title to proj...
38
<div class="charge_chart" id="project_services_chart"></div>
54e2baa6   hitier   Add charge charts...
39
<hr/>
de63cb72   hitier   Add title to proj...
40
<div class="charge_chart" id="project_capacities_chart"></div>
54e2baa6   hitier   Add charge charts...
41
<hr/>
0d6506cb   hitier   New project_charg...
42
43
44
45
<table id="charge_table">
  <thead>
  <tr>
    {% for header in charges[0] %}
b9d90810   hitier   Tweak charges tab...
46
    <th>{{header}}</th>
0d6506cb   hitier   New project_charg...
47
48
49
50
51
52
53
54
55
56
57
58
59
    {% 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:...
60
61
62
{% endblock %}

{% block more_scripts %}
54e2baa6   hitier   Add charge charts...
63
{% include 'd3js-includes.html' %}
5e6f4e07   hitier   Set Rokotyan Solu...
64
{% include 'charges-includes.html' %}
54e2baa6   hitier   Add charge charts...
65
66
<script>
  build_chart("#project_services_chart",
de63cb72   hitier   Add title to proj...
67
68
69
      "{{url_for('main.charge_project_csv', project_id=project.id, category='service')}}",
      "{{project.name}}",
      "service");
54e2baa6   hitier   Add charge charts...
70
  build_chart("#project_capacities_chart",
de63cb72   hitier   Add title to proj...
71
72
73
      "{{url_for('main.charge_project_csv', project_id=project.id, category='capacity')}}",
      "{{project.name}}",
      "capacity");
54e2baa6   hitier   Add charge charts...
74
</script>
d7a4e41b   hitier   New project page:...
75
{% endblock %}