Ajout de la barre de navigation
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -14,10 +14,9 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<div class="row flex-nowrap">
|
||||
{% include "parts/menu_application.html" %}
|
||||
<div class="row flex-nowrap vh-100">
|
||||
{% include "parts/navigation-ordinateur.html" %}
|
||||
{% comment %} {% include "parts/navigation-mobile.html" %} {% endcomment %}
|
||||
<div class="col">
|
||||
{% block "contenu" %} {% endblock %}
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,21 @@
|
||||
<div class="col-1 bg-danger border d-flex flex-column vh-100 pt-5 sticky-top">
|
||||
<a href="{{ LIEN_SIRH }}" class="text-white text-center fw-bold text-decoration-none mb-4" style="font-size:1.4em">
|
||||
<i class="bi bi-people-fill fs-1 d-block"></i>SIRH
|
||||
{% load static %}
|
||||
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="{% static 'images/cerfig.jpg' %}" alt="Logo" width="85" height="30" class="d-inline-block align-text-top">
|
||||
</a>
|
||||
<a href="{{ LIEN_SGL }}" class="text-white text-center fw-bold text-decoration-none mb-4" style="font-size:1.4em">
|
||||
<i class="bi bi-building-gear fs-1 d-block"></i> SGL
|
||||
</a>
|
||||
</div>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="nav nav-tabs justify-content-end w-100">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ LIEN_SIRH }}">SIRH</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page" href="{{ LIEN_SGL }}">SGL</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
static/images/cerfig.jpg
Normal file
BIN
static/images/cerfig.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
@@ -179,26 +179,25 @@ const tableau_equipement_rendre = new Tabulator("#tableau-equipement-rendre", {
|
||||
{title:"Libellé", field:"produit"},
|
||||
{title:"Quantite", field:"quantite"},
|
||||
{title:"Detenteur", field:"detenteur"},
|
||||
// {title:"Departement", field:"detenteur"},
|
||||
{title:"Rendu", field:"action", formatter:"tickCross", editor: true},
|
||||
],
|
||||
})
|
||||
|
||||
$("equipementARendreEnregistrer").addEventListener("click", function () {
|
||||
const information_equipement = tableau_equipement_rendre.getData();
|
||||
const csrf = document.querySelector('[name=csrfmiddlewaretoken]').value;
|
||||
fetch(`${$("equipementARendreEnregistrer").dataset.url}`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"X-CSRFToken": csrf
|
||||
},
|
||||
body: JSON.stringify(information_equipement)
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
tableau_equipement_rendre.setData("/equipement-a-rendre");
|
||||
// tableau_equipement_rendre.clearEditedData();
|
||||
})
|
||||
.catch(error => console.error(error))
|
||||
})
|
||||
// $("equipementARendreEnregistrer").addEventListener("click", function () {
|
||||
// const information_equipement = tableau_equipement_rendre.getData();
|
||||
// const csrf = document.querySelector('[name=csrfmiddlewaretoken]').value;
|
||||
// fetch(`${$("equipementARendreEnregistrer").dataset.url}`, {
|
||||
// method: "POST",
|
||||
// headers: {
|
||||
// "Content-Type": "application/json",
|
||||
// "X-CSRFToken": csrf
|
||||
// },
|
||||
// body: JSON.stringify(information_equipement)
|
||||
// })
|
||||
// .then(response => response.json())
|
||||
// .then(data => {
|
||||
// tableau_equipement_rendre.setData("/equipement-a-rendre");
|
||||
// // tableau_equipement_rendre.clearEditedData();
|
||||
// })
|
||||
// .catch(error => console.error(error))
|
||||
// })
|
||||
Reference in New Issue
Block a user