Blame view

app/main/templates/projects.html 1.11 KB
3dae0d18   hitier   Projects list
1
{% extends "base_page.html" %}
73162524   Anais Amato   make Tables 'list...
2
3

{% block more_heads %}
6845708c   Anais Amato   delete useless cd...
4
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/buttons.dataTables.min.css') }}"/>
73162524   Anais Amato   make Tables 'list...
5
6
7
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/datatables.min.css') }}"/>
{% endblock %}

3dae0d18   hitier   Projects list
8
{% block content %}
9f86aeea   Anais Amato   Change navbar act...
9
10

<!-- Invisible span to definte wich ul and a in the navbar are actived -->
1e327d7a   hitier   New categories page
11
<span id="nav_actived" style="display: none">project,projects</span>
9f86aeea   Anais Amato   Change navbar act...
12

73162524   Anais Amato   make Tables 'list...
13
<table id="table_datatables" class="table table-hover">
3dae0d18   hitier   Projects list
14
15
  <thead>
  <tr>
02118cc9   hitier   Show projects cat...
16
17
18
    {% for c_title in projects[0][1:] %}
    <th scope="col">{{c_title}}</th>
    {% endfor %}
3dae0d18   hitier   Projects list
19
20
21
  </tr>
  </thead>
  <tbody>
02118cc9   hitier   Show projects cat...
22
  {% for project in projects[1:] %}
3dae0d18   hitier   Projects list
23
  <tr>
02118cc9   hitier   Show projects cat...
24
25
    <td><a href="{{url_for('main.project', project_id=project[0])}}">
      {{ project[1] }}</a>
f8e1465a   hitier   New projects list...
26
    </td>
40126f91   hitier   Update project ro...
27
    {#the category cells#}
02118cc9   hitier   Show projects cat...
28
    {% for c in project[2:-1] %}
40126f91   hitier   Update project ro...
29
    <td>{{c|join(',')}}</td>
02118cc9   hitier   Show projects cat...
30
    {% endfor %}
a7537589   hitier   Display charges i...
31
    <td>{{ project[-1] /100}}</td>
3dae0d18   hitier   Projects list
32
33
34
35
36
  </tr>
  {% endfor %}
  </tbody>
</table>
{% endblock %}
73162524   Anais Amato   make Tables 'list...
37
38
39
40

{% block more_scripts %}
{% include 'datatables-includes.html' %}
{% endblock %}