Commit 50d6e6b00fa42dd414ab384f70a47c260bb7b373
1 parent
2334e14a
Exists in
master
and in
4 other branches
Reformat html code with pycharm settings
Showing
16 changed files
with
205 additions
and
178 deletions
Show diff stats
app/auth/templates/login.html
... | ... | @@ -2,17 +2,20 @@ |
2 | 2 | <html lang="fr"> |
3 | 3 | <head> |
4 | 4 | {% include 'heads.html' %} |
5 | - <link href="{{ url_for('static', filename='css/style.css', version=config.VERSION) }}" rel="stylesheet" type="text/css"/> | |
6 | - <link href="{{ url_for('auth.static', filename='signin.css', version=config.VERSION) }}" rel="stylesheet" type="text/css"/> | |
5 | + <link href="{{ url_for('static', filename='css/style.css', version=config.VERSION) }}" rel="stylesheet" | |
6 | + type="text/css"/> | |
7 | + <link href="{{ url_for('auth.static', filename='signin.css', version=config.VERSION) }}" rel="stylesheet" | |
8 | + type="text/css"/> | |
7 | 9 | </head> |
8 | 10 | <body class="text-center"> |
9 | - <form action="{{ url_for('auth.login')}}" class="form-signin" method="POST"> | |
11 | + <form action="{{ url_for('auth.login') }}" class="form-signin" method="POST"> | |
10 | 12 | {% include 'flash-messages.html' %} |
11 | 13 | |
12 | - <a href="{{url_for('main.index')}}"> | |
13 | - <img class="mb-4 {{config.PDC_SITE_CLASS}}" height="72" src="{{ url_for('static', filename='img/pdc.png', version=config.VERSION) }}" width="72"> | |
14 | + <a href="{{ url_for('main.index') }}"> | |
15 | + <img class="mb-4 {{ config.PDC_SITE_CLASS }}" height="72" | |
16 | + src="{{ url_for('static', filename='img/pdc.png', version=config.VERSION) }}" width="72"> | |
14 | 17 | </a> |
15 | - <h1 class="h3 font-weight-normal mb-3">{{config.PDC_APP_NAME}} - {{config.PDC_SITE_NAME}}</h1> | |
18 | + <h1 class="h3 font-weight-normal mb-3">{{ config.PDC_APP_NAME }} - {{ config.PDC_SITE_NAME }}</h1> | |
16 | 19 | <h1 class="h3 font-weight-normal mb-3">Connectez vous</h1> |
17 | 20 | <label class="sr-only" for="login">Email Adress</label> |
18 | 21 | <input autofocus class="form-control" id="login" name="login" placeholder="identifiant" required> | ... | ... |
app/errors/templates/error.html
1 | 1 | {% extends "base_page.html" %} |
2 | 2 | |
3 | 3 | {% block content %} |
4 | -<h2 class="error_title">{{ error_title }}</h2> | |
5 | -<div class="error_msg">{{ error_msg }}</div> | |
6 | -<a href="{{url_for('main.index')}}">Retour à l'accueil</a> | |
4 | + <h2 class="error_title">{{ error_title }}</h2> | |
5 | + <div class="error_msg">{{ error_msg }}</div> | |
6 | + <a href="{{ url_for('main.index') }}">Retour à l'accueil</a> | |
7 | 7 | {% endblock %} | ... | ... |
app/main/templates/labels.html
... | ... | @@ -16,7 +16,7 @@ |
16 | 16 | <tr> |
17 | 17 | <td>{{ label.name }}</td> |
18 | 18 | <td>{{ commons.edit_link(url_for('main.label_edit', label_id=label.id)) }} |
19 | - {{ commons.delete_link( url_for('main.label_delete', label_id=label.id)) }}</td> | |
19 | + {{ commons.delete_link( url_for('main.label_delete', label_id=label.id)) }}</td> | |
20 | 20 | </tr> |
21 | 21 | {% endfor %} |
22 | 22 | </tbody> | ... | ... |
app/main/templates/periods.html
1 | 1 | {% extends "base_page.html" %} |
2 | 2 | {% block content %} |
3 | 3 | |
4 | -<!-- Invisible span to definte wich ul and a in the navbar are actived --> | |
5 | -<span id="nav_actived" style="display: none">admin,liste_periodes</span> | |
4 | + <!-- Invisible span to definte wich ul and a in the navbar are actived --> | |
5 | + <span id="nav_actived" style="display: none">admin,liste_periodes</span> | |
6 | 6 | |
7 | -<table class="table table-hover"> | |
8 | - <thead> | |
9 | - <tr> | |
10 | - <th scope="col">Période</th> | |
11 | - </tr> | |
12 | - </thead> | |
13 | - <tbody> | |
14 | - {% for period in periods %} | |
15 | - <tr> | |
16 | - <td>{{ period.name }}</td> | |
17 | - </tr> | |
18 | - {% endfor %} | |
19 | - </tbody> | |
20 | -</table> | |
7 | + <table class="table table-hover"> | |
8 | + <thead> | |
9 | + <tr> | |
10 | + <th scope="col">Période</th> | |
11 | + </tr> | |
12 | + </thead> | |
13 | + <tbody> | |
14 | + {% for period in periods %} | |
15 | + <tr> | |
16 | + <td>{{ period.name }}</td> | |
17 | + </tr> | |
18 | + {% endfor %} | |
19 | + </tbody> | |
20 | + </table> | |
21 | 21 | {% endblock %} | ... | ... |
app/main/templates/project.html
1 | 1 | {% extends "base_page.html" %} |
2 | 2 | |
3 | 3 | {% block more_heads %} |
4 | - <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/buttons.dataTables.min.css') }}"/> | |
5 | - <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/datatables.min.css') }}"/> | |
6 | - <link href="{{ url_for('main.static', filename='css/charges.css', version=config.VERSION) }}" rel="stylesheet" type="text/css"/> | |
4 | + <link rel="stylesheet" type="text/css" | |
5 | + href="{{ url_for('static', filename='lib/datatables-1.10.24/css/buttons.dataTables.min.css') }}"/> | |
6 | + <link rel="stylesheet" type="text/css" | |
7 | + href="{{ url_for('static', filename='lib/datatables-1.10.24/css/datatables.min.css') }}"/> | |
8 | + <link href="{{ url_for('main.static', filename='css/charges.css', version=config.VERSION) }}" rel="stylesheet" | |
9 | + type="text/css"/> | |
7 | 10 | {% endblock %} |
8 | 11 | |
9 | 12 | {% block content %} |
10 | -<!-- Invisible span to definte wich ul and a in the navbar are actived --> | |
11 | -<span id="nav_actived" style="display: none">projet,liste_projets</span> | |
13 | + <!-- Invisible span to definte wich ul and a in the navbar are actived --> | |
14 | + <span id="nav_actived" style="display: none">projet,liste_projets</span> | |
12 | 15 | |
13 | -<div class="card"> | |
14 | - <div class="card-header"> | |
15 | - Fiche Projet | |
16 | + <div class="card"> | |
17 | + <div class="card-header"> | |
18 | + Fiche Projet | |
19 | + </div> | |
20 | + <div class="card-body"> | |
21 | + <dl class="row"> | |
22 | + <dt class="col-sm-2 text-right">ID :</dt> | |
23 | + <dd class="col-sm-10 text-left">{{ project['id'] }}</dd> | |
24 | + {% for category, labels in project['category_labels'].items() %} | |
25 | + <dt class="col-sm-2 text-right">{{ category }} :</dt> | |
26 | + <dd class="col-sm-10 text-left">{{ labels|join(",") }}</dd> | |
27 | + {% endfor %} | |
28 | + <dt class="col-sm-2 text-right">Etat :</dt> | |
29 | + <dd class="col-sm-10 text-left"></dd> | |
30 | + <dt class="col-sm-2 text-right">Date RSP :</dt> | |
31 | + <dd class="col-sm-10 text-left"></dd> | |
32 | + <dt class="col-sm-2 text-right">Fiche projet :</dt> | |
33 | + <dd class="col-sm-10 text-left"></dd> | |
34 | + <dt class="col-sm-2 text-right">Date MAJ de la fiche :</dt> | |
35 | + <dd class="col-sm-10 text-left"></dd> | |
36 | + <dt class="col-sm-2 text-right">Commentaire :</dt> | |
37 | + <dd class="col-sm-10 text-left"></dd> | |
38 | + </dl> | |
39 | + <a class="card-link" href="{{ url_for('main.project_edit', project_id=project.id) }}">Modifier</a> | |
40 | + <a class="card-link" href="{{ url_for('main.charge_add', project_id=project.id) }}">Charger</a> | |
41 | + </div> | |
16 | 42 | </div> |
17 | - <div class="card-body"> | |
18 | - <dl class="row"> | |
19 | - <dt class="col-sm-2 text-right">ID :</dt> | |
20 | - <dd class="col-sm-10 text-left">{{project['id']}}</dd> | |
21 | - {% for category, labels in project['category_labels'].items() %} | |
22 | - <dt class="col-sm-2 text-right">{{category}} :</dt> | |
23 | - <dd class="col-sm-10 text-left">{{labels|join(",")}}</dd> | |
24 | - {% endfor %} | |
25 | - <dt class="col-sm-2 text-right">Etat :</dt> | |
26 | - <dd class="col-sm-10 text-left"></dd> | |
27 | - <dt class="col-sm-2 text-right">Date RSP :</dt> | |
28 | - <dd class="col-sm-10 text-left"></dd> | |
29 | - <dt class="col-sm-2 text-right">Fiche projet :</dt> | |
30 | - <dd class="col-sm-10 text-left"></dd> | |
31 | - <dt class="col-sm-2 text-right">Date MAJ de la fiche :</dt> | |
32 | - <dd class="col-sm-10 text-left"></dd> | |
33 | - <dt class="col-sm-2 text-right">Commentaire :</dt> | |
34 | - <dd class="col-sm-10 text-left"></dd> | |
35 | - </dl> | |
36 | - <a class="card-link" href="{{url_for('main.project_edit', project_id=project.id)}}">Modifier</a> | |
37 | - <a class="card-link" href="{{url_for('main.charge_add', project_id=project.id)}}">Charger</a> | |
38 | - </div> | |
39 | -</div> | |
40 | 43 | |
41 | -<div class="charge_chart" id="project_services_chart"></div> | |
42 | -<hr/> | |
43 | -<div class="charge_chart" id="project_capacities_chart"></div> | |
44 | -<hr/> | |
45 | -<table id="charge_table"> | |
46 | - <thead> | |
47 | - <tr> | |
48 | - {% for header in charges[0] %} | |
49 | - <th>{{header}}</th> | |
50 | - {% endfor %} | |
51 | - </tr> | |
52 | - </thead> | |
53 | - <tbody> | |
54 | - {% for line in charges[1:] %} | |
55 | - <tr> | |
56 | - {% for cell in line %} | |
57 | - <td>{{cell}}</td> | |
44 | + <div class="charge_chart" id="project_services_chart"></div> | |
45 | + <hr/> | |
46 | + <div class="charge_chart" id="project_capacities_chart"></div> | |
47 | + <hr/> | |
48 | + <table id="charge_table"> | |
49 | + <thead> | |
50 | + <tr> | |
51 | + {% for header in charges[0] %} | |
52 | + <th>{{ header }}</th> | |
53 | + {% endfor %} | |
54 | + </tr> | |
55 | + </thead> | |
56 | + <tbody> | |
57 | + {% for line in charges[1:] %} | |
58 | + <tr> | |
59 | + {% for cell in line %} | |
60 | + <td>{{ cell }}</td> | |
61 | + {% endfor %} | |
62 | + </tr> | |
58 | 63 | {% endfor %} |
59 | - </tr> | |
60 | - {% endfor %} | |
61 | - </tbody> | |
62 | -</table> | |
64 | + </tbody> | |
65 | + </table> | |
63 | 66 | {% endblock %} |
64 | 67 | |
65 | 68 | {% block more_scripts %} |
66 | -{% include 'd3js-includes.html' %} | |
67 | -{% include 'charges-includes.html' %} | |
68 | -{% include 'datatables-includes.html' %} | |
69 | + {% include 'd3js-includes.html' %} | |
70 | + {% include 'charges-includes.html' %} | |
71 | + {% include 'datatables-includes.html' %} | |
69 | 72 | |
70 | -<script> | |
71 | - build_chart("#project_services_chart", | |
72 | - "{{url_for('main.charge_project_csv', project_id=project.id, category='service')}}", | |
73 | - "{{project.name}}", | |
74 | - "service"); | |
75 | - build_chart("#project_capacities_chart", | |
76 | - "{{url_for('main.charge_project_csv', project_id=project.id, category='capacity')}}", | |
77 | - "{{project.name}}", | |
78 | - "capacity"); | |
79 | -</script> | |
73 | + <script> | |
74 | + build_chart("#project_services_chart", | |
75 | + "{{url_for('main.charge_project_csv', project_id=project.id, category='service')}}", | |
76 | + "{{project.name}}", | |
77 | + "service"); | |
78 | + build_chart("#project_capacities_chart", | |
79 | + "{{url_for('main.charge_project_csv', project_id=project.id, category='capacity')}}", | |
80 | + "{{project.name}}", | |
81 | + "capacity"); | |
82 | + </script> | |
80 | 83 | {% endblock %} | ... | ... |
app/main/templates/project_form.html
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | <label for="name">Nom</label> |
21 | 21 | <input class="form-control" id="name" name="name" type="text" value="{{ project['name'] }}"> |
22 | 22 | </div> |
23 | - {% for c in categories %} | |
23 | + {% for c in categories %} | |
24 | 24 | <div class="form-group"> |
25 | 25 | <label for="{{ c.name }}">{{ c.name }}</label> |
26 | 26 | <select id="{{ c.name }}" name="{{ c.name }}" class="form-control" multiple> |
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | {% endfor %} |
30 | 30 | </select> |
31 | 31 | </div> |
32 | - {% endfor %} | |
32 | + {% endfor %} | |
33 | 33 | <input class="pdc-form-submit" type="submit" value="Valider"> |
34 | 34 | </form> |
35 | 35 | {% endblock %} | ... | ... |
app/main/templates/projects.html
1 | 1 | {% extends "base_page.html" %} |
2 | 2 | |
3 | 3 | {% block more_heads %} |
4 | - <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/buttons.dataTables.min.css') }}"/> | |
5 | - <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='lib/datatables-1.10.24/css/datatables.min.css') }}"/> | |
4 | + <link rel="stylesheet" type="text/css" | |
5 | + href="{{ url_for('static', filename='lib/datatables-1.10.24/css/buttons.dataTables.min.css') }}"/> | |
6 | + <link rel="stylesheet" type="text/css" | |
7 | + href="{{ url_for('static', filename='lib/datatables-1.10.24/css/datatables.min.css') }}"/> | |
6 | 8 | {% endblock %} |
7 | 9 | |
8 | 10 | {% block content %} |
9 | 11 | |
10 | -<!-- Invisible span to definte wich ul and a in the navbar are actived --> | |
11 | -<span id="nav_actived" style="display: none">project,projects</span> | |
12 | + <!-- Invisible span to definte wich ul and a in the navbar are actived --> | |
13 | + <span id="nav_actived" style="display: none">project,projects</span> | |
12 | 14 | |
13 | -<table id="table_datatables" class="table table-hover"> | |
14 | - <thead> | |
15 | - <tr> | |
16 | - {% for c_title in projects[0][1:] %} | |
17 | - <th scope="col" >{{c_title}}</th> | |
15 | + <table id="table_datatables" class="table table-hover"> | |
16 | + <thead> | |
17 | + <tr> | |
18 | + {% for c_title in projects[0][1:] %} | |
19 | + <th scope="col">{{ c_title }}</th> | |
20 | + {% endfor %} | |
21 | + <th scope="col" class="col-1">Éditer</th> | |
22 | + </tr> | |
23 | + </thead> | |
24 | + <tbody> | |
25 | + {% for project in projects[1:] %} | |
26 | + <tr> | |
27 | + <td><a href="{{ url_for('main.project', project_id=project[0]) }}"> | |
28 | + {{ project[1] }}</a> | |
29 | + </td> | |
30 | + {#the category cells#} | |
31 | + {% for c in project[2:-1] %} | |
32 | + <td>{{ c|join(',') }}</td> | |
33 | + {% endfor %} | |
34 | + <td>{{ project[-1] /100 }}</td> | |
35 | + <td>{{ commons.edit_link(url_for('main.project_edit', project_id=project[0])) }} | |
36 | + {{ commons.delete_link( url_for('main.project_delete', project_id=project[0])) }}</td> | |
37 | + </tr> | |
18 | 38 | {% endfor %} |
19 | - <th scope="col" class="col-1">Éditer</th> | |
20 | - </tr> | |
21 | - </thead> | |
22 | - <tbody> | |
23 | - {% for project in projects[1:] %} | |
24 | - <tr> | |
25 | - <td><a href="{{url_for('main.project', project_id=project[0])}}"> | |
26 | - {{ project[1] }}</a> | |
27 | - </td> | |
28 | - {#the category cells#} | |
29 | - {% for c in project[2:-1] %} | |
30 | - <td>{{c|join(',')}}</td> | |
31 | - {% endfor %} | |
32 | - <td>{{ project[-1] /100}}</td> | |
33 | - <td>{{ commons.edit_link(url_for('main.project_edit', project_id=project[0])) }} | |
34 | - {{ commons.delete_link( url_for('main.project_delete', project_id=project[0])) }}</td> | |
35 | - </tr> | |
36 | - {% endfor %} | |
37 | - </tbody> | |
38 | -</table> | |
39 | + </tbody> | |
40 | + </table> | |
39 | 41 | {% endblock %} |
40 | 42 | |
41 | 43 | {% block more_scripts %} |
42 | -{% include 'datatables-includes.html' %} | |
44 | + {% include 'datatables-includes.html' %} | |
43 | 45 | {% endblock %} | ... | ... |
app/main/templates/services.html
1 | 1 | {% extends "base_page.html" %} |
2 | 2 | {% block content %} |
3 | 3 | |
4 | -<!-- Invisible span to definte wich ul and a in the navbar are actived --> | |
5 | -<span id="nav_actived" style="display: none">service,liste_services</span> | |
4 | + <!-- Invisible span to definte wich ul and a in the navbar are actived --> | |
5 | + <span id="nav_actived" style="display: none">service,liste_services</span> | |
6 | 6 | |
7 | -<table class="table table-hover"> | |
8 | - <thead> | |
9 | - <tr> | |
10 | - <th scope="col">Service</th> | |
11 | - </tr> | |
12 | - </thead> | |
13 | - <tbody> | |
14 | - {% for service in services %} | |
15 | - <tr> | |
16 | - <td>{{ service.name }}</td> | |
17 | - </tr> | |
18 | - {% endfor %} | |
19 | - </tbody> | |
20 | -</table> | |
7 | + <table class="table table-hover"> | |
8 | + <thead> | |
9 | + <tr> | |
10 | + <th scope="col">Service</th> | |
11 | + </tr> | |
12 | + </thead> | |
13 | + <tbody> | |
14 | + {% for service in services %} | |
15 | + <tr> | |
16 | + <td>{{ service.name }}</td> | |
17 | + </tr> | |
18 | + {% endfor %} | |
19 | + </tbody> | |
20 | + </table> | |
21 | 21 | {% endblock %} | ... | ... |
app/templates/base_page.html
... | ... | @@ -48,12 +48,14 @@ |
48 | 48 | Agent |
49 | 49 | </a> |
50 | 50 | <ul aria-expanded="false" class="collapse" class="nav" data-parent="#v_menu" id="agent"> |
51 | - <li class="nav-item"><a id="liste_agents" class="sub_link nav-link " href="{{ url_for('main.agents') }}">Liste des | |
51 | + <li class="nav-item"><a id="liste_agents" class="sub_link nav-link " | |
52 | + href="{{ url_for('main.agents') }}">Liste des | |
52 | 53 | agents</a> |
53 | 54 | </li> |
54 | 55 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Statistiques</a></li> |
55 | 56 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Liste des responsabilités</a></li> |
56 | - <li class="nav-item"><a id="capacities" class="sub_link nav-link " href="{{ url_for('main.capacities') }}">Liste des | |
57 | + <li class="nav-item"><a id="capacities" class="sub_link nav-link " | |
58 | + href="{{ url_for('main.capacities') }}">Liste des | |
57 | 59 | fonctions</a> |
58 | 60 | </li> |
59 | 61 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Liste des compétences</a></li> |
... | ... | @@ -67,12 +69,16 @@ |
67 | 69 | Projet |
68 | 70 | </a> |
69 | 71 | <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="project"> |
70 | - <li class="nav-item"><a id="projects" class="sub_link nav-link " href="{{ url_for('main.projects') }}">Liste des | |
72 | + <li class="nav-item"><a id="projects" class="sub_link nav-link " href="{{ url_for('main.projects') }}">Liste | |
73 | + des | |
71 | 74 | projets</a></li> |
72 | - <li class="nav-item"><a id="categories" class="sub_link nav-link" href="{{ url_for('main.categories') }}">Liste des catégories</a></li> | |
73 | - <li class="nav-item"><a id="labels" class="sub_link nav-link" href="{{ url_for('main.labels') }}">Liste des labels</a></li> | |
75 | + <li class="nav-item"><a id="categories" class="sub_link nav-link" | |
76 | + href="{{ url_for('main.categories') }}">Liste des catégories</a></li> | |
77 | + <li class="nav-item"><a id="labels" class="sub_link nav-link" href="{{ url_for('main.labels') }}">Liste | |
78 | + des labels</a></li> | |
74 | 79 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Listes des statuts de projets</a> |
75 | - <li class="nav-item"><a id="projects_stats" class="sub_link nav-link" href="{{ url_for('main.projects_stats') }}">Statistiques</a></li> | |
80 | + <li class="nav-item"><a id="projects_stats" class="sub_link nav-link" | |
81 | + href="{{ url_for('main.projects_stats') }}">Statistiques</a></li> | |
76 | 82 | </li> |
77 | 83 | </ul> |
78 | 84 | </li> |
... | ... | @@ -82,7 +88,8 @@ |
82 | 88 | Service |
83 | 89 | </a> |
84 | 90 | <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="service"> |
85 | - <li class="nav-item"><a id="liste_services" class="sub_link nav-link " href="{{ url_for('main.services') }}">Liste des | |
91 | + <li class="nav-item"><a id="liste_services" class="sub_link nav-link " | |
92 | + href="{{ url_for('main.services') }}">Liste des | |
86 | 93 | services</a> |
87 | 94 | </li> |
88 | 95 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Statistiques</a></li> |
... | ... | @@ -94,12 +101,14 @@ |
94 | 101 | Chef de service |
95 | 102 | </a> |
96 | 103 | <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="cds"> |
97 | - <li class="nav-item"><a id="edit_agent" class="sub_link nav-link " href="{{ url_for('main.agent_edit') }}">Ajouter un | |
104 | + <li class="nav-item"><a id="edit_agent" class="sub_link nav-link " | |
105 | + href="{{ url_for('main.agent_edit') }}">Ajouter un | |
98 | 106 | Agent</a></li> |
99 | 107 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Renseigner le statut d'un agent pour |
100 | 108 | un |
101 | 109 | semestre</a></li> |
102 | - <li class="nav-item"><a id="add_charge" class="sub_link nav-link " href="{{ url_for('main.charge_add') }}">Affecter un | |
110 | + <li class="nav-item"><a id="add_charge" class="sub_link nav-link " | |
111 | + href="{{ url_for('main.charge_add') }}">Affecter un | |
103 | 112 | agent à un |
104 | 113 | projet/service</a></li> |
105 | 114 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Création agent virtuel</a></li> |
... | ... | @@ -115,9 +124,12 @@ |
115 | 124 | </a> |
116 | 125 | <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="admin"> |
117 | 126 | |
118 | - <li class="nav-item"><a id="project_edit" class="sub_link nav-link" href="{{ url_for('main.project_edit') }}">Nouveau projet</a></li> | |
119 | - <li class="nav-item"><a id="category_edit" class="sub_link nav-link" href="{{ url_for('main.category_edit') }}">Nouvelle catégorie</a></li> | |
120 | - <li class="nav-item"><a id="label_edit" class="sub_link nav-link" href="{{ url_for('main.label_edit') }}">Nouveau label</a></li> | |
127 | + <li class="nav-item"><a id="project_edit" class="sub_link nav-link" | |
128 | + href="{{ url_for('main.project_edit') }}">Nouveau projet</a></li> | |
129 | + <li class="nav-item"><a id="category_edit" class="sub_link nav-link" | |
130 | + href="{{ url_for('main.category_edit') }}">Nouvelle catégorie</a></li> | |
131 | + <li class="nav-item"><a id="label_edit" class="sub_link nav-link" | |
132 | + href="{{ url_for('main.label_edit') }}">Nouveau label</a></li> | |
121 | 133 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouvelle compétence</a></li> |
122 | 134 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouvelle fonction</a></li> |
123 | 135 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouvelle responsabilité</a></li> |
... | ... | @@ -125,7 +137,8 @@ |
125 | 137 | projet</a></li> |
126 | 138 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Affecter un responsable de |
127 | 139 | service</a></li> |
128 | - <li class="nav-item"><a id="liste_periodes" class="sub_link nav-link " href="{{ url_for('main.periods') }}">Liste des | |
140 | + <li class="nav-item"><a id="liste_periodes" class="sub_link nav-link " | |
141 | + href="{{ url_for('main.periods') }}">Liste des | |
129 | 142 | périodes</a></li> |
130 | 143 | <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouveau semestre</a></li> |
131 | 144 | ... | ... |
app/templates/bs4-scripts.html
1 | - <script src="{{ url_for('static', filename='js/jquery-3.6.0.min.js') }}" type="text/javascript"></script> | |
2 | - <script src="{{ url_for('static', filename='js/bootstrap.bundle.min.js') }}" type="text/javascript"></script> | |
3 | - <script> | |
1 | +<script src="{{ url_for('static', filename='js/jquery-3.6.0.min.js') }}" type="text/javascript"></script> | |
2 | +<script src="{{ url_for('static', filename='js/bootstrap.bundle.min.js') }}" type="text/javascript"></script> | |
3 | +<script> | |
4 | 4 | $(function () { |
5 | 5 | $('[data-toggle="tooltip"]').tooltip() |
6 | 6 | }); |
... | ... | @@ -8,4 +8,4 @@ |
8 | 8 | // Set the bootstrap layout for forms |
9 | 9 | $(".pdc-form").addClass("col-12 col-md-10 col-lg-8 col-xl-6") |
10 | 10 | $(".pdc-form-submit").addClass("btn btn-dark col-12") |
11 | - </script> | |
11 | +</script> | ... | ... |
app/templates/charges-includes.html
... | ... | @@ -2,5 +2,7 @@ |
2 | 2 | src="https://cdn.rawgit.com/eligrey/canvas-toBlob.js/f1a01896135ab378aa5c0118eadd81da55e698d8/canvas-toBlob.js"></script> |
3 | 3 | <script |
4 | 4 | src="https://cdn.rawgit.com/eligrey/FileSaver.js/e9d941381475b5df8b7d7691013401e171014e89/FileSaver.min.js"></script> |
5 | -<script src="{{ url_for('main.static', filename='js/svg_to_any.js', version=config.VERSION) }}" type="text/javascript"></script> | |
6 | -<script src="{{ url_for('main.static', filename='js/charges.js', version=config.VERSION) }}" type="text/javascript"></script> | |
5 | +<script src="{{ url_for('main.static', filename='js/svg_to_any.js', version=config.VERSION) }}" | |
6 | + type="text/javascript"></script> | |
7 | +<script src="{{ url_for('main.static', filename='js/charges.js', version=config.VERSION) }}" | |
8 | + type="text/javascript"></script> | ... | ... |
app/templates/d3js-includes.html
1 | - <script src="{{ url_for('static', filename='js/d3.v6.min.js') }}" type="text/javascript"></script> | |
2 | - <script src="{{ url_for('static', filename='js/font-awesome.min.js') }}" type="text/javascript"></script> | |
1 | +<script src="{{ url_for('static', filename='js/d3.v6.min.js') }}" type="text/javascript"></script> | |
2 | +<script src="{{ url_for('static', filename='js/font-awesome.min.js') }}" type="text/javascript"></script> | ... | ... |
app/templates/datatables-includes.html
1 | -<script src="{{ url_for('static', filename='lib/datatables-1.10.24/js/datatables.min.js') }}" type="text/javascript"></script> | |
1 | +<script src="{{ url_for('static', filename='lib/datatables-1.10.24/js/datatables.min.js') }}" | |
2 | + type="text/javascript"></script> | |
2 | 3 | |
3 | -<script type="text/javascript" src="{{ url_for('static', filename='lib/datatables-1.10.24/js/dataTables.buttons.min.js') }}"></script> | |
4 | -<script type="text/javascript" src="{{ url_for('static', filename='lib/datatables-1.10.24/js/buttons.html5.min.js') }}"></script> | |
4 | +<script type="text/javascript" | |
5 | + src="{{ url_for('static', filename='lib/datatables-1.10.24/js/dataTables.buttons.min.js') }}"></script> | |
6 | +<script type="text/javascript" | |
7 | + src="{{ url_for('static', filename='lib/datatables-1.10.24/js/buttons.html5.min.js') }}"></script> | |
5 | 8 | <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> |
6 | 9 | |
7 | -<script src="{{ url_for('main.static', filename='js/style_tables.js', version=config.VERSION) }}" type="text/javascript"></script> | |
10 | +<script src="{{ url_for('main.static', filename='js/style_tables.js', version=config.VERSION) }}" | |
11 | + type="text/javascript"></script> | ... | ... |
app/templates/flash-messages.html
1 | - {% with messages = get_flashed_messages(with_categories=true) %} | |
1 | +{% with messages = get_flashed_messages(with_categories=true) %} | |
2 | 2 | {% if messages %} |
3 | - <div id="messages" class="mt-1"> | |
3 | + <div id="messages" class="mt-1"> | |
4 | 4 | {% for level, message in messages %} |
5 | - {% if level == 'message' %} | |
6 | - <div class="alert alert-primary" role="alert">{{ message }} | |
7 | - {% else %} | |
8 | - <div class="alert alert-{{level}}" role="alert">{{ message }} | |
9 | - {% endif %} | |
5 | + {% if level == 'message' %} | |
6 | + <div class="alert alert-primary" role="alert">{{ message }} | |
7 | + {% else %} | |
8 | + <div class="alert alert-{{ level }}" role="alert">{{ message }} | |
9 | + {% endif %} | |
10 | 10 | <button aria-label="Close" class="close" data-dismiss="alert" type="button"> |
11 | 11 | <span aria-hidden="true">×</span> |
12 | 12 | </button> |
... | ... | @@ -14,4 +14,4 @@ |
14 | 14 | {% endfor %} |
15 | 15 | </div> |
16 | 16 | {% endif %} |
17 | - {% endwith %} | |
18 | 17 | \ No newline at end of file |
18 | +{% endwith %} | |
19 | 19 | \ No newline at end of file | ... | ... |
app/templates/heads.html
1 | - <meta charset="utf-8"> | |
2 | - <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"> | |
3 | - <link href="{{ url_for('static', filename='img/pdc-ico.png', version=config.VERSION) }}" rel="icon"/> | |
4 | - <link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet" type="text/css"/> | |
5 | - <title>{% if title %} {{title}} {% else %}{{config.PDC_APP_NAME}} - {{config.PDC_SITE_NAME}}{%endif%}</title> | |
6 | 1 | \ No newline at end of file |
2 | +<meta charset="utf-8"> | |
3 | +<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"> | |
4 | +<link href="{{ url_for('static', filename='img/pdc-ico.png', version=config.VERSION) }}" rel="icon"/> | |
5 | +<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet" type="text/css"/> | |
6 | +<title>{% if title %} {{ title }} {% else %}{{ config.PDC_APP_NAME }} - {{ config.PDC_SITE_NAME }}{% endif %}</title> | |
7 | 7 | \ No newline at end of file | ... | ... |
app/templates/index.html