Blame view

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

9b93cc2d   hitier   Add new create ag...
16
      {{ config.PDC_APP_NAME }} - {{ config.PDC_SITE_NAME }}</a>
a1b5d9b0   Anais Amato   Add responsive me...
17
    <ul class="navbar-nav flex-row ml-auto">
ee92fad7   hitier   Fix navbar
18
      {% if not current_user.is_anonymous %}
9b93cc2d   hitier   Add new create ag...
19
20
21
22
23
24
        <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...
25
      {% else %}
9b93cc2d   hitier   Add new create ag...
26
27
28
        <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...
29
      {% endif %}
cbe1461d   hitier   Fix closing ul in...
30
    </ul>
e5230891   hitier   Add bootstrap imp...
31
32
  </nav>

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

fd63e06e   Anais Amato   update coloration...
117
                <li class="nav-item"><a id="project_edit" class="sub_link nav-link" href="{{ url_for('main.project_edit') }}">Nouveau projet</a></li>
ef5fae02   Anais Amato   Update navbar sho...
118
119
120
121
122
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouveau service</a></li>
                <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>
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouveau domaine</a></li>
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouvelle responsabilité</a></li>
9b93cc2d   hitier   Add new create ag...
123
124
125
126
                <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...
127
                <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...
128
                  périodes</a></li>
ef5fae02   Anais Amato   Update navbar sho...
129
                <li class="nav-item"><a class="sub_link nav-link disabled" href="#">Nouveau semestre</a></li>
2d7fcc61   hitier   New base page emb...
130

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

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

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


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

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

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

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