From 94f1e24d3676db4df3eb07b42c88e71c17b8f80c Mon Sep 17 00:00:00 2001 From: Arthur ZHU Date: Tue, 26 Apr 2022 20:21:56 +0200 Subject: [PATCH] ajout bouton retirer sur les formulaires --- app/entreprises/forms.py | 2 +- app/static/css/entreprises.css | 5 +++++ .../entreprises/ajout_correspondants.html | 17 ++++++++++++++++- app/templates/entreprises/envoi_offre_form.html | 17 ++++++++++++++++- app/templates/entreprises/form.html | 6 +++--- 5 files changed, 41 insertions(+), 6 deletions(-) diff --git a/app/entreprises/forms.py b/app/entreprises/forms.py index 33b5c22de..a16190070 100644 --- a/app/entreprises/forms.py +++ b/app/entreprises/forms.py @@ -339,7 +339,7 @@ class CorrespondantsCreationForm(FlaskForm): correspondant_list = [] for entry in self.correspondants.entries: - if entry.nom.data.strip() and entry.prenom.data.strip(): + if entry.nom.data and entry.prenom.data: if ( entry.nom.data.strip(), entry.prenom.data.strip(), diff --git a/app/static/css/entreprises.css b/app/static/css/entreprises.css index 436288666..0ede866cb 100644 --- a/app/static/css/entreprises.css +++ b/app/static/css/entreprises.css @@ -40,6 +40,11 @@ *background-color: #151515; } +.btn-remove { + margin-top: 5px; + margin-bottom: 5px; +} + .fiche-entreprise .btn { margin-top: 5px; margin-bottom: 5px; diff --git a/app/templates/entreprises/ajout_correspondants.html b/app/templates/entreprises/ajout_correspondants.html index be8e5cc81..18070b7fc 100644 --- a/app/templates/entreprises/ajout_correspondants.html +++ b/app/templates/entreprises/ajout_correspondants.html @@ -35,6 +35,14 @@ {% endblock %} \ No newline at end of file diff --git a/app/templates/entreprises/envoi_offre_form.html b/app/templates/entreprises/envoi_offre_form.html index ca5ba131e..6ead6477d 100644 --- a/app/templates/entreprises/envoi_offre_form.html +++ b/app/templates/entreprises/envoi_offre_form.html @@ -36,6 +36,14 @@ {% endblock %} \ No newline at end of file diff --git a/app/templates/entreprises/form.html b/app/templates/entreprises/form.html index fe51a97b4..067f4a508 100644 --- a/app/templates/entreprises/form.html +++ b/app/templates/entreprises/form.html @@ -23,15 +23,15 @@