base_page.html
10.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{% import '_commons.html' as commons -%}
<!doctype html>
<html lang="fr">
<head>
{% include 'heads.html' %}
{% block more_heads %}
{% endblock %}
</head>
<body>
<nav class="navbar navbar-dark sticky-top bg-dark navbar-expand-lg p-1">
<a id="accueil" class="navbar-brand col-sm-3 col-md-2 " href="{{ url_for('main.index') }}">
<img class="m-0 mr-1 {{ config.PDC_SITE_CLASS }}"
src="{{ url_for('static', filename='img/pdc-ico.png', version=config.VERSION) }}" height="30" width="30"/>
{{ config.PDC_APP_NAME }} - {{ config.PDC_SITE_NAME }}</a>
<ul class="navbar-nav flex-row ml-auto">
{% if not current_user.is_anonymous %}
<li class="nav-item">
<span class="navbar-brand">{{ current_user.name }}</span>
</li>
<li class="nav-item text-nowrap">
<a class="nav-link link_connect" href="{{ url_for('auth.logout') }}">Déconnexion</a>
</li>
{% else %}
<li class="nav-item text-nowrap">
<a class="nav-link link_connect" href="{{ url_for('auth.login') }}">Connexion</a>
</li>
{% endif %}
</ul>
</nav>
<div class="container-fluid">
<div class="row">
<nav class="col-md-half col-lg-2 col-md-2 navbar-light bg-light navbar-expand-md sidebar mt-5">
<button id="test" class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="sidebar-sticky collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav flex-column" id="v_menu">
<li class="nav-item">
<a aria-expanded="false" class="main-nav nav-link" data-target="#agent" data-toggle="collapse"
href="#">
<span data-feather="user"></span>
Agent
</a>
<ul aria-expanded="false" class="collapse" class="nav" data-parent="#v_menu" id="agent">
<li class="nav-item"><a id="agents_list" class="sub_link nav-link "
href="{{ url_for('main.agents') }}">Liste des agents</a>
</li>
<li class="nav-item"><a id="responsabilities" class="sub_link nav-link"
href="{{ url_for('main.responsabilities') }}">Liste des responsabilités</a></li>
<li class="nav-item"><a id="capacities" class="sub_link nav-link "
href="{{ url_for('main.capacities') }}">Liste des fonctions</a>
</li>
<li class="nav-item"><a id="skills" class="sub_link nav-link"
href="{{ url_for('main.skills') }}">Liste des compétences</a></li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Liste des pôles</a></li>
<li class="nav-item"><a id="employments" class="sub_link nav-link"
href="{{ url_for('main.employments') }}">Liste des emplois types</a></li>
<li class="nav-item"><a id="agents_stats" class="sub_link nav-link"
href="{{ url_for('main.agents_stats') }}">Statistiques</a></li>
</ul>
</li>
<li class="nav-item">
<a aria-expanded="false" class="main-nav nav-link" data-target="#project" data-toggle="collapse" href="#">
<span data-feather="file"></span>
Projet
</a>
<ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="project">
<li class="nav-item"><a id="projects_list" class="sub_link nav-link "
href="{{ url_for('main.projects') }}">Liste des projets</a></li>
<li class="nav-item"><a id="categories_list" class="sub_link nav-link"
href="{{ url_for('main.categories') }}">Liste des catégories</a></li>
<li class="nav-item"><a id="labels_list" class="sub_link nav-link"
href="{{ url_for('main.labels') }}">Liste des labels</a></li>
<li class="nav-item"><a id="project_statuses" class="sub_link nav-link"
href="{{ url_for('main.project_statuses') }}">Liste des statuts de projet</a>
<li class="nav-item"><a id="projects_stats" class="sub_link nav-link"
href="{{ url_for('main.projects_stats') }}">Statistiques</a></li>
</li>
</ul>
</li>
<li class="nav-item">
<a aria-expanded="false" class="main-nav nav-link" data-target="#service" data-toggle="collapse" href="#">
<span data-feather="home"></span>
Service
</a>
<ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="service">
<li class="nav-item"><a id="services_list" class="sub_link nav-link "
href="{{ url_for('main.services') }}">Liste des
services</a>
</li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Statistiques</a></li>
</ul>
</li>
<li class="nav-item">
<a aria-expanded="false" class="main-nav nav-link" data-target="#cds" data-toggle="collapse" href="#">
<span data-feather="users"></span>
Chef de service
</a>
<ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="cds">
<li class="nav-item"><a id="agent_edit" class="sub_link nav-link "
href="{{ url_for('main.agent_edit') }}">Ajouter un Agent</a></li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Renseigner le statut d'un agent pour
un
semestre</a></li>
<li class="nav-item"><a id="charge_add" class="sub_link nav-link "
href="{{ url_for('main.charge_add') }}">Affecter un
agent à un
projet/service</a></li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Création agent virtuel</a></li>
<li class="nav-item"><a id="total_charge" class="sub_link nav-link"
href="{{ url_for('main.total_charge') }}">Charge totale des agents</a></li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Détails des charges</a></li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Graphiques personnalisés</a></li>
</ul>
</li>
<li class="nav-item">
<a aria-expanded="false" class="main-nav nav-link" data-target="#admin" data-toggle="collapse" href="#">
<span data-feather="settings"></span>
Administrateur
</a>
<ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="admin">
<li class="nav-item"><a id="project_edit" class="sub_link nav-link"
href="{{ url_for('main.project_edit') }}">Ajouter un projet</a></li>
<li class="nav-item"><a id="category_edit" class="sub_link nav-link"
href="{{ url_for('main.category_edit') }}">Ajouter une catégorie</a>
</li>
<li class="nav-item"><a id="label_edit" class="sub_link nav-link"
href="{{ url_for('main.label_edit') }}">Ajouter un label</a></li>
<li class="nav-item"><a id="skill_edit" class="sub_link nav-link"
href="{{ url_for('main.skill_edit') }}">Ajouter une compétence</a>
</li>
<li class="nav-item"><a id="capacity_edit" class="sub_link nav-link"
href="{{ url_for('main.capacity_edit') }}">Ajouter une fonction</a>
</li>
<li class="nav-item"><a id="responsability_edit" class="sub_link nav-link"
href="{{ url_for('main.responsability_edit') }}">Ajouter une responsabilité</a>
</li>
<li class="nav-item"><a id="status_project_edit" class="sub_link nav-link "
href="{{ url_for('main.project_status_edit') }}">Ajouter un statut de projet</a>
</li>
<li class="nav-item"><a id="service_edit" class="sub_link nav-link"
href="{{ url_for('main.service_edit') }}">Ajouter un service</a></li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Affecter un responsable de
projet</a>
</li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Affecter un responsable de
service</a></li>
<li class="nav-item"><a id="periods_list" class="sub_link nav-link "
href="{{ url_for('main.periods') }}">Liste des
périodes</a></li>
<li class="nav-item"><a class="sub_link nav-link disabled" href="#">Ajouter une période</a>
</li>
</li>
</li>
</ul>
</li>
</ul>
</div>
<footer class="footer">
{% include 'copy.html' %}
</footer>
</nav>
<main id="main" class="ml-md-auto ml-sm-5 ml-xs-8 col-xs-4 col-sm-11 col-md-9 col-lg-10 pt-3 px-4" role="main">
<h2 class="sub-header">{{ subtitle }}</h2>
{% include 'flash-messages.html' %}
{% block content %}
{% endblock %}
</main>
</div>
</div>
{% include 'bs4-scripts.html' %}
{% include 'datatables-includes.html' %}
<!-- Icons -->
<script src="{{ url_for('static', filename='lib/feather-4.28.0/feather.min.js') }}"></script>
<script>
feather.replace();
</script>
<script type="text/javascript"
src="{{ url_for('static', filename='js/navbar.js', version=config.VERSION) }}"></script>
{% block more_scripts %}
{% endblock %}
</body>
</html>