Blame view

app/main/templates/projects.html 1.33 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
    {% for c_title in projects[0][1:] %}
2334e14a   hitier   Add edit/delete l...
17
    <th scope="col" >{{c_title}}</th>
02118cc9   hitier   Show projects cat...
18
    {% endfor %}
2334e14a   hitier   Add edit/delete l...
19
    <th scope="col" class="col-1">Éditer</th>
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>
2334e14a   hitier   Add edit/delete l...
33
34
    <td>{{ commons.edit_link(url_for('main.project_edit', project_id=project[0])) }}
    {{ commons.delete_link( url_for('main.project_delete', project_id=project[0])) }}</td>
3dae0d18   hitier   Projects list
35
36
37
38
39
  </tr>
  {% endfor %}
  </tbody>
</table>
{% endblock %}
73162524   Anais Amato   make Tables 'list...
40
41
42
43

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