diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index ee9f705..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,51 +0,0 @@ -pipeline -{ - agent any - options { - skipDefaultCheckout(true) - } - - environment - { - SUDO_PASSWORD = credentials('sudo-password') - } - - stages - { - stage ( 'checkout' ) - { - steps - { - sh 'echo "Debut du pipeline"' - cleanWs() - checkout scm - } - } - stage ( 'Deploiement' ) - { - when { branch 'main' } - steps { - sh ''' - cd /var/www/sgl - echo $SUDO_PASSWORD | sudo -S chown -R jenkins:jenkins /var/www/sgl - - git fetch origin main - git reset --hard origin/main - - python3 -m venv venv - . venv/bin/activate - pip install -r requirements.txt - - python manage.py makemigrations - python manage.py migrate - echo $SUDO_PASSWORD | sudo -S rm -r staticfiles - python manage.py collectstatic --noinput - - echo $SUDO_PASSWORD | sudo -S chown -R www-data:www-data /var/www/sgl - echo "Deploiement reussi" - echo $SUDO_PASSWORD | sudo -S supervisorctl restart sgl - ''' - } - } - } -} \ No newline at end of file diff --git a/SGL/templates/parts/menu_application.html b/SGL/templates/parts/menu_application.html index 1868637..bd72bcb 100644 --- a/SGL/templates/parts/menu_application.html +++ b/SGL/templates/parts/menu_application.html @@ -15,6 +15,9 @@
- Quantite en stock: {{ produit.stockActuel }} -
- ++ Quantite en stock: {{ produit.stockActuel }} +
+ + {% endif %} + +Aucun produit disponible.
diff --git a/gestion_produit/urls.py b/gestion_produit/urls.py index ac8d6c6..1f34f6b 100644 --- a/gestion_produit/urls.py +++ b/gestion_produit/urls.py @@ -81,4 +81,14 @@ urlpatterns = [ views.detail_demande, name="detail_demande" ), + path( + "filtrer-produit-par-categorie/+ Quantite en stock: ${produit.stockActuel} +
` : ""} + ${produit.appartient_logistique ? `` : ""} + ++ Quantite en stock: ${produit.stockActuel} +
+ ${produit.appartient_logistique ? `` : ""} + ${produit.appartient_logistique ? `` : ""} + +