Blame view

app/main/templates/project.html 2.35 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
<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>
09551925   hitier   New charge add pa...
35
    <a class="card-link" href="{{url_for('main.charge_add', project_id=project.id)}}">Charger</a>
5aabd083   hitier   Insert descriptio...
36
37
38
  </div>
</div>

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

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