Blame view

app/main/templates/projects.html 1.21 KB
3dae0d18   hitier   Projects list
1
{% extends "base_page.html" %}
73162524   Anais Amato   make Tables 'list...
2
3
4
5
6
7
8

{% block more_heads %}
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css"/>
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.7.0/css/buttons.dataTables.min.css"/>
    <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
9
{% block content %}
9f86aeea   Anais Amato   Change navbar act...
10
11

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

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

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