base_page.html 7.14 KB
<!doctype html>
<html lang="fr">
<head>
  {% include 'heads.html' %}
  <link href="{{ url_for('static', filename='css/style.css', version=config.VERSION) }}" rel="stylesheet" type="text/css"/>
  {% block more_heads %}
  {% endblock %}
</head>
<body>
  <nav class="navbar navbar-dark sticky-top bg-dark navbar-expand-lg p-1">
    <a 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 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" href="{{ url_for('auth.logout') }}">Déconnexion</a>
      </li>
      {% else %}
      <li class="nav-item text-nowrap">
        <a class="nav-link" href="{{ url_for('auth.login') }}">Connexion</a>
      </li>
      {% endif %}
    </ul>
  </nav>

  <div class="container-fluid">
    <div class="row">
      <nav class="col-md-2 d-none d-md-block bg-light sidebar mt-3">
        <div class="sidebar-sticky">
          <ul class="nav flex-column" id="v_menu">
            <li class="nav-item">
              <a class="nav-link" href="#">
                <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>
              <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>
                <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>
                <li class="nav-item"><a class="nav-link " href="{{url_for('main.capacities')}}">Liste des fonctions</a>
                </li>
                <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>
              </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>
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="projet">
                <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>
              </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>
              <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>
                <li class="nav-item"><a class="nav-link disabled" href="#">Statistiques</a></li>
              </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>
              <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>
                <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>
              </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>
              <ul aria-expanded="false" class="collapse" data-parent="#v_menu" id="admin">

                <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>

              </ul>
            </li>
          </ul>
        </div>
        <footer class="footer">
          {% include 'copy.html' %}
        </footer>
      </nav>

      <main id="main" class="col-md-9 ml-sm-auto 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' %}
  <!-- Icons -->
  <script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
  <script>
    feather.replace()
  </script>
  {% block more_scripts %}
  {% endblock %}
</body>
</html>