Blame view

app/templates/base_page.html 7.14 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' %}
76739351   hitier   Versionize any cu...
5
  <link href="{{ url_for('static', filename='css/style.css', version=config.VERSION) }}" rel="stylesheet" type="text/css"/>
04e2a90d   hitier   Show agent charge...
6
7
  {% block more_heads %}
  {% endblock %}
2d7fcc61   hitier   New base page emb...
8
9
</head>
<body>
ee92fad7   hitier   Fix navbar
10
  <nav class="navbar navbar-dark sticky-top bg-dark navbar-expand-lg p-1">
fe74c223   hitier   Fix top nav title...
11
    <a class="navbar-brand col-sm-3 col-md-2 " href="{{url_for('main.index')}}">
76739351   hitier   Versionize any cu...
12
      <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"/>
880e8a55   hitier   New config vars u...
13
      {{config.PDC_APP_NAME}} - {{config.PDC_SITE_NAME}}</a>
ee92fad7   hitier   Fix navbar
14
15
16
17
18
    <ul class="navbar-nav ml-auto">
      {% if not current_user.is_anonymous %}
      <li class="nav-item">
        <span class="navbar-brand">{{current_user.name}}</span>
      </li>
a49732b5   hitier   Add current user ...
19
      <li class="nav-item text-nowrap">
11977ccc   hitier   Fix french typo
20
        <a class="nav-link" href="{{ url_for('auth.logout') }}">Déconnexion</a>
59f42c31   hitier   Allow logout
21
      </li>
63ac6a6e   hitier   Auto collapse ver...
22
      {% else %}
59f42c31   hitier   Allow logout
23
      <li class="nav-item text-nowrap">
11977ccc   hitier   Fix french typo
24
        <a class="nav-link" href="{{ url_for('auth.login') }}">Connexion</a>
e5230891   hitier   Add bootstrap imp...
25
      </li>
63ac6a6e   hitier   Auto collapse ver...
26
      {% endif %}
cbe1461d   hitier   Fix closing ul in...
27
    </ul>
e5230891   hitier   Add bootstrap imp...
28
29
  </nav>

92c69b78   hitier   Fix main margin o...
30
  <div class="container-fluid">
e5230891   hitier   Add bootstrap imp...
31
    <div class="row">
ee92fad7   hitier   Fix navbar
32
      <nav class="col-md-2 d-none d-md-block bg-light sidebar mt-3">
e5230891   hitier   Add bootstrap imp...
33
        <div class="sidebar-sticky">
63ac6a6e   hitier   Auto collapse ver...
34
          <ul class="nav flex-column" id="v_menu">
e5230891   hitier   Add bootstrap imp...
35
            <li class="nav-item">
63ac6a6e   hitier   Auto collapse ver...
36
              <a class="nav-link" href="#">
e5230891   hitier   Add bootstrap imp...
37
38
39
40
41
42
43
44
45
                <span data-feather="home"></span>
                accueil
              </a>
            </li>
            <li class="nav-item">
              <a aria-expanded="false" class="nav-link" data-target="#agent" data-toggle="collapse" href="#">
                <span data-feather="user"></span>
                Agent
              </a>
63ac6a6e   hitier   Auto collapse ver...
46
47
48
              <ul aria-expanded="false" class="collapse" class="nav" data-parent="#v_menu" id="agent">
                <li class="nav-item"><a class="nav-link " href="{{url_for('main.agents')}}">Liste des agents</a>
                </li>
c7737881   hitier   Update v-nav menu...
49
50
                <li class="nav-item"><a class="nav-link disabled" href="#">Statistiques</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Liste des responsabilités</a></li>
63ac6a6e   hitier   Auto collapse ver...
51
52
                <li class="nav-item"><a class="nav-link " href="{{url_for('main.capacities')}}">Liste des fonctions</a>
                </li>
c7737881   hitier   Update v-nav menu...
53
54
55
                <li class="nav-item"><a class="nav-link disabled" href="#">Liste des compétences</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Liste des pôles</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Liste des emplois types</a></li>
e5230891   hitier   Add bootstrap imp...
56
57
58
59
60
61
62
              </ul>
            </li>
            <li class="nav-item">
              <a aria-expanded="false" class="nav-link" data-target="#projet" data-toggle="collapse" href="#">
                <span data-feather="file"></span>
                Projet
              </a>
63ac6a6e   hitier   Auto collapse ver...
63
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="projet">
c7737881   hitier   Update v-nav menu...
64
65
66
67
                <li class="nav-item"><a class="nav-link " href="{{url_for('main.projects')}}">Liste des projets</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Statistiques</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Listes des domaines</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Listes des statuts de projets</a></li>
e5230891   hitier   Add bootstrap imp...
68
69
70
71
72
73
74
              </ul>
            </li>
            <li class="nav-item">
              <a aria-expanded="false" class="nav-link" data-target="#service" data-toggle="collapse" href="#">
                <span data-feather="home"></span>
                Service
              </a>
63ac6a6e   hitier   Auto collapse ver...
75
76
77
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="service">
                <li class="nav-item"><a class="nav-link " href="{{url_for('main.services')}}">Liste des services</a>
                </li>
c7737881   hitier   Update v-nav menu...
78
                <li class="nav-item"><a class="nav-link disabled" href="#">Statistiques</a></li>
e5230891   hitier   Add bootstrap imp...
79
80
81
82
83
84
85
              </ul>
            </li>
            <li class="nav-item">
              <a aria-expanded="false" class="nav-link" data-target="#cds" data-toggle="collapse" href="#">
                <span data-feather="users"></span>
                Chef de service
              </a>
63ac6a6e   hitier   Auto collapse ver...
86
87
88
89
90
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="cds">
                <li class="nav-item"><a class="nav-link disabled" href="#">Renseigner le statut d'un agent pour un
                  semestre</a></li>
                <li class="nav-item"><a class="nav-link " href="{{url_for('main.charge_add')}}">Affecter un agent à un
                  projet/service</a></li>
c7737881   hitier   Update v-nav menu...
91
92
93
94
                <li class="nav-item"><a class="nav-link disabled" href="#">Création agent virtuel</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Charge totale des agents</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Détails des charges</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Graphiques personnalisés</a></li>
e5230891   hitier   Add bootstrap imp...
95
96
97
98
99
100
101
              </ul>
            </li>
            <li class="nav-item">
              <a aria-expanded="false" class="nav-link" data-target="#admin" data-toggle="collapse" href="#">
                <span data-feather="settings"></span>
                Administrateur
              </a>
63ac6a6e   hitier   Auto collapse ver...
102
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="admin">
e5230891   hitier   Add bootstrap imp...
103

c7737881   hitier   Update v-nav menu...
104
105
106
107
108
109
110
111
112
113
                <li class="nav-item"><a class="nav-link disabled" href="#">Nouveau projet</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Nouveau service</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Nouvelle compétence</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Nouvelle fonction</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Nouveau domaine</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Nouvelle responsabilité</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Affecter un responsable de projet</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Affecter un responsable de service</a></li>
                <li class="nav-item"><a class="nav-link " href="{{url_for('main.periods')}}">Liste des périodes</a></li>
                <li class="nav-item"><a class="nav-link disabled" href="#">Nouveau semestre</a></li>
2d7fcc61   hitier   New base page emb...
114

e5230891   hitier   Add bootstrap imp...
115
116
117
118
119
              </ul>
            </li>
          </ul>
        </div>
        <footer class="footer">
e90be54b   hitier   Copyright footer ...
120
          {% include 'copy.html' %}
e5230891   hitier   Add bootstrap imp...
121
122
        </footer>
      </nav>
2d7fcc61   hitier   New base page emb...
123

7c1b38be   hitier   Draw charts to fi...
124
      <main id="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4" role="main">
d2dcb89e   hitier   Styling pages sub...
125
        <h2 class="sub-header">{{subtitle}}</h2>
a49732b5   hitier   Add current user ...
126
127
128
        {% include 'flash-messages.html' %}
        {% block content %}
        {% endblock %}
e5230891   hitier   Add bootstrap imp...
129
      </main>
2d7fcc61   hitier   New base page emb...
130
131

    </div>
e5230891   hitier   Add bootstrap imp...
132
133
134
  </div>


c854a098   hitier   New included temp...
135
  {% include 'bs4-scripts.html' %}
e5230891   hitier   Add bootstrap imp...
136
137
138
139
140
  <!-- Icons -->
  <script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
  <script>
    feather.replace()
  </script>
d9f5cfc9   hitier   New agent page dy...
141
142
  {% block more_scripts %}
  {% endblock %}
a6745c24   hitier   Include boostrap
143
</body>
2d7fcc61   hitier   New base page emb...
144
</html>