Blame view

app/templates/base_page.html 8.78 KB
ddb02ef0   hitier   New jinja common lib
1
{% import '_commons.html' as commons -%}
a6745c24   hitier   Include boostrap
2
<!doctype html>
6d5cc0de   hitier   Head is now included
3
<html lang="fr">
2d7fcc61   hitier   New base page emb...
4
<head>
6d5cc0de   hitier   Head is now included
5
  {% include 'heads.html' %}
04e2a90d   hitier   Show agent charge...
6
7
  {% block more_heads %}
  {% endblock %}
715c0527   Anais Amato   Make tables sorta...
8
9
  <link href="{{ url_for('static', filename='css/style.css', version=config.VERSION) }}" rel="stylesheet"
        type="text/css"/>
2d7fcc61   hitier   New base page emb...
10
11
</head>
<body>
ee92fad7   hitier   Fix navbar
12
  <nav class="navbar navbar-dark sticky-top bg-dark navbar-expand-lg p-1">
9b93cc2d   hitier   Add new create ag...
13
14
15
    <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"/>
ef5fae02   Anais Amato   Update navbar sho...
16

9b93cc2d   hitier   Add new create ag...
17
      {{ config.PDC_APP_NAME }} - {{ config.PDC_SITE_NAME }}</a>
a1b5d9b0   Anais Amato   Add responsive me...
18
    <ul class="navbar-nav flex-row ml-auto">
ee92fad7   hitier   Fix navbar
19
      {% if not current_user.is_anonymous %}
9b93cc2d   hitier   Add new create ag...
20
21
22
23
24
25
        <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>
63ac6a6e   hitier   Auto collapse ver...
26
      {% else %}
9b93cc2d   hitier   Add new create ag...
27
28
29
        <li class="nav-item text-nowrap">
          <a class="nav-link link_connect" href="{{ url_for('auth.login') }}">Connexion</a>
        </li>
63ac6a6e   hitier   Auto collapse ver...
30
      {% endif %}
cbe1461d   hitier   Fix closing ul in...
31
    </ul>
e5230891   hitier   Add bootstrap imp...
32
33
  </nav>

92c69b78   hitier   Fix main margin o...
34
  <div class="container-fluid">
e5230891   hitier   Add bootstrap imp...
35
    <div class="row">
f6572d7d   Anais Amato   Fix menu sidebar ...
36
      <nav class="col-md-half col-lg-2 col-md-2 navbar-light bg-light navbar-expand-md sidebar mt-5">
9b93cc2d   hitier   Add new create ag...
37
38
39
40
41
42
        <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">
63ac6a6e   hitier   Auto collapse ver...
43
          <ul class="nav flex-column" id="v_menu">
e5230891   hitier   Add bootstrap imp...
44
            <li class="nav-item">
9b93cc2d   hitier   Add new create ag...
45
46
              <a aria-expanded="false" id="agents" class="main-nav nav-link" data-target="#agent" data-toggle="collapse"
                 href="#">
e5230891   hitier   Add bootstrap imp...
47
48
49
                <span data-feather="user"></span>
                Agent
              </a>
63ac6a6e   hitier   Auto collapse ver...
50
              <ul aria-expanded="false" class="collapse" class="nav" data-parent="#v_menu" id="agent">
fd63e06e   Anais Amato   update coloration...
51
                <li class="nav-item"><a id="liste_agents" class="sub_link nav-link " href="{{ url_for('main.agents') }}">Liste des
9b93cc2d   hitier   Add new create ag...
52
                  agents</a>
63ac6a6e   hitier   Auto collapse ver...
53
                </li>
ef5fae02   Anais Amato   Update navbar sho...
54
55
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Statistiques</a></li>
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Liste des responsabilités</a></li>
fd63e06e   Anais Amato   update coloration...
56
                <li class="nav-item"><a id="capacities" class="sub_link nav-link " href="{{ url_for('main.capacities') }}">Liste des
9b93cc2d   hitier   Add new create ag...
57
                  fonctions</a>
63ac6a6e   hitier   Auto collapse ver...
58
                </li>
ef5fae02   Anais Amato   Update navbar sho...
59
60
61
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">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 class="sub_link nav-link disabled" href="#">Liste des emplois types</a></li>
e5230891   hitier   Add bootstrap imp...
62
63
64
              </ul>
            </li>
            <li class="nav-item">
1e327d7a   hitier   New categories page
65
              <a aria-expanded="false" class="main-nav nav-link" data-target="#project" data-toggle="collapse" href="#">
e5230891   hitier   Add bootstrap imp...
66
67
68
                <span data-feather="file"></span>
                Projet
              </a>
1e327d7a   hitier   New categories page
69
70
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="project">
                <li class="nav-item"><a id="projects" class="sub_link nav-link " href="{{ url_for('main.projects') }}">Liste des
9b93cc2d   hitier   Add new create ag...
71
                  projets</a></li>
1e327d7a   hitier   New categories page
72
                <li class="nav-item"><a id="categories" class="sub_link nav-link" href="{{ url_for('main.categories') }}">Liste des catégories</a></li>
ec68fbf2   hitier   New labels page
73
                <li class="nav-item"><a id="labels" class="sub_link nav-link" href="{{ url_for('main.labels') }}">Liste des labels</a></li>
9b93cc2d   hitier   Add new create ag...
74
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Listes des statuts de projets</a>
55d58635   hitier   New projects stat...
75
                <li class="nav-item"><a id="projects_stats" class="sub_link nav-link" href="{{ url_for('main.projects_stats') }}">Statistiques</a></li>
9b93cc2d   hitier   Add new create ag...
76
                </li>
e5230891   hitier   Add bootstrap imp...
77
78
79
              </ul>
            </li>
            <li class="nav-item">
ef5fae02   Anais Amato   Update navbar sho...
80
              <a aria-expanded="false" class="main-nav nav-link" data-target="#service" data-toggle="collapse" href="#">
e5230891   hitier   Add bootstrap imp...
81
82
83
                <span data-feather="home"></span>
                Service
              </a>
63ac6a6e   hitier   Auto collapse ver...
84
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="service">
fd63e06e   Anais Amato   update coloration...
85
                <li class="nav-item"><a id="liste_services" class="sub_link nav-link " href="{{ url_for('main.services') }}">Liste des
9b93cc2d   hitier   Add new create ag...
86
                  services</a>
63ac6a6e   hitier   Auto collapse ver...
87
                </li>
ef5fae02   Anais Amato   Update navbar sho...
88
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Statistiques</a></li>
e5230891   hitier   Add bootstrap imp...
89
90
91
              </ul>
            </li>
            <li class="nav-item">
ef5fae02   Anais Amato   Update navbar sho...
92
              <a aria-expanded="false" class="main-nav nav-link" data-target="#cds" data-toggle="collapse" href="#">
e5230891   hitier   Add bootstrap imp...
93
94
95
                <span data-feather="users"></span>
                Chef de service
              </a>
63ac6a6e   hitier   Auto collapse ver...
96
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="cds">
fd63e06e   Anais Amato   update coloration...
97
                <li class="nav-item"><a id="edit_agent" class="sub_link nav-link " href="{{ url_for('main.agent_edit') }}">Ajouter un
9b93cc2d   hitier   Add new create ag...
98
99
100
                  Agent</a></li>
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Renseigner le statut d'un agent pour
                  un
63ac6a6e   hitier   Auto collapse ver...
101
                  semestre</a></li>
fd63e06e   Anais Amato   update coloration...
102
                <li class="nav-item"><a id="add_charge" class="sub_link nav-link " href="{{ url_for('main.charge_add') }}">Affecter un
9b93cc2d   hitier   Add new create ag...
103
                  agent à un
63ac6a6e   hitier   Auto collapse ver...
104
                  projet/service</a></li>
ef5fae02   Anais Amato   Update navbar sho...
105
106
107
108
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Création agent virtuel</a></li>
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">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>
e5230891   hitier   Add bootstrap imp...
109
110
111
              </ul>
            </li>
            <li class="nav-item">
ef5fae02   Anais Amato   Update navbar sho...
112
              <a aria-expanded="false" class="main-nav nav-link" data-target="#admin" data-toggle="collapse" href="#">
e5230891   hitier   Add bootstrap imp...
113
114
115
                <span data-feather="settings"></span>
                Administrateur
              </a>
63ac6a6e   hitier   Auto collapse ver...
116
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="admin">
e5230891   hitier   Add bootstrap imp...
117

fd63e06e   Anais Amato   update coloration...
118
                <li class="nav-item"><a id="project_edit" class="sub_link nav-link" href="{{ url_for('main.project_edit') }}">Nouveau projet</a></li>
61e8ddf2   hitier   New labels and ca...
119
120
                <li class="nav-item"><a id="category_edit" class="sub_link nav-link" href="{{ url_for('main.category_edit') }}">Nouvelle catégorie</a></li>
                <li class="nav-item"><a id="label_edit" class="sub_link nav-link" href="{{ url_for('main.label_edit') }}">Nouveau label</a></li>
ef5fae02   Anais Amato   Update navbar sho...
121
122
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouvelle compétence</a></li>
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouvelle fonction</a></li>
ef5fae02   Anais Amato   Update navbar sho...
123
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouvelle responsabilité</a></li>
9b93cc2d   hitier   Add new create ag...
124
125
126
127
                <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>
fd63e06e   Anais Amato   update coloration...
128
                <li class="nav-item"><a id="liste_periodes" class="sub_link nav-link " href="{{ url_for('main.periods') }}">Liste des
9b93cc2d   hitier   Add new create ag...
129
                  périodes</a></li>
ef5fae02   Anais Amato   Update navbar sho...
130
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouveau semestre</a></li>
2d7fcc61   hitier   New base page emb...
131

e5230891   hitier   Add bootstrap imp...
132
133
134
135
136
              </ul>
            </li>
          </ul>
        </div>
        <footer class="footer">
e90be54b   hitier   Copyright footer ...
137
          {% include 'copy.html' %}
e5230891   hitier   Add bootstrap imp...
138
139
        </footer>
      </nav>
2d7fcc61   hitier   New base page emb...
140

a1b5d9b0   Anais Amato   Add responsive me...
141
      <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">
9b93cc2d   hitier   Add new create ag...
142
        <h2 class="sub-header">{{ subtitle }}</h2>
a49732b5   hitier   Add current user ...
143
144
145
        {% include 'flash-messages.html' %}
        {% block content %}
        {% endblock %}
e5230891   hitier   Add bootstrap imp...
146
      </main>
2d7fcc61   hitier   New base page emb...
147
148

    </div>
e5230891   hitier   Add bootstrap imp...
149
150
151
  </div>


c854a098   hitier   New included temp...
152
  {% include 'bs4-scripts.html' %}
e5230891   hitier   Add bootstrap imp...
153
154
155
  <!-- Icons -->
  <script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
  <script>
9b93cc2d   hitier   Add new create ag...
156
      feather.replace()
e5230891   hitier   Add bootstrap imp...
157
  </script>
ef5fae02   Anais Amato   Update navbar sho...
158

9b93cc2d   hitier   Add new create ag...
159
160
  <script type="text/javascript"
          src="{{ url_for('static', filename='js/navbar.js', version=config.VERSION) }}"></script>
ef5fae02   Anais Amato   Update navbar sho...
161

d9f5cfc9   hitier   New agent page dy...
162
163
  {% block more_scripts %}
  {% endblock %}
ef5fae02   Anais Amato   Update navbar sho...
164

a6745c24   hitier   Include boostrap
165
</body>
2d7fcc61   hitier   New base page emb...
166
</html>