From ee110e5950663a3482c3666992809c0225e93b51 Mon Sep 17 00:00:00 2001 From: Arthur ZHU Date: Mon, 31 Jan 2022 20:09:49 +0100 Subject: [PATCH] ajout style fiche entreprise --- app/static/css/entreprises.css | 28 +++++++++++++++ app/templates/entreprises/_contact.html | 4 +-- app/templates/entreprises/_offre.html | 4 +-- .../entreprises/fiche_entreprise.html | 36 ++++++++++--------- 4 files changed, 51 insertions(+), 21 deletions(-) diff --git a/app/static/css/entreprises.css b/app/static/css/entreprises.css index 6dded2fa..aebcc2e6 100644 --- a/app/static/css/entreprises.css +++ b/app/static/css/entreprises.css @@ -8,4 +8,32 @@ color: #ffffff; background-color: #222222; *background-color: #151515; +} + +.fiche-entreprise .btn { + margin-bottom: 10px; +} + +.parent-btn { + margin-bottom: -10px; +} + +.entreprise, .contact, .offre { + border: solid 2px; + border-radius: 10px; + padding: 10px; + margin-bottom: 10px; +} + +.contacts-et-offres { + display: flex; + justify-content: space-between; +} + +.contacts-et-offres > div { + flex: 1 0 0; +} + +.contacts-et-offres > div:nth-child(2) { + margin-left: 20px; } \ No newline at end of file diff --git a/app/templates/entreprises/_contact.html b/app/templates/entreprises/_contact.html index 29f7bd46..5030f46e 100644 --- a/app/templates/entreprises/_contact.html +++ b/app/templates/entreprises/_contact.html @@ -1,5 +1,5 @@ {# -*- mode: jinja-html -*- #} -
+

Nom : {{ contact.nom }}
Prénom : {{ contact.prenom }}
@@ -14,7 +14,7 @@

{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %} -
+ diff --git a/app/templates/entreprises/_offre.html b/app/templates/entreprises/_offre.html index a893cf5b..683131ac 100644 --- a/app/templates/entreprises/_offre.html +++ b/app/templates/entreprises/_offre.html @@ -1,5 +1,5 @@ {# -*- mode: jinja-html -*- #} -
+

Intitulé : {{ offre[0].intitule }}
Description : {{ offre[0].description }}
@@ -17,7 +17,7 @@ {% endif %}

-
+
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %} Modifier l'offre Supprimer l'offre diff --git a/app/templates/entreprises/fiche_entreprise.html b/app/templates/entreprises/fiche_entreprise.html index a94abbae..23855332 100644 --- a/app/templates/entreprises/fiche_entreprise.html +++ b/app/templates/entreprises/fiche_entreprise.html @@ -34,10 +34,10 @@
{% endif %} -
+

Fiche entreprise - {{ entreprise.nom }} ({{ entreprise.siret }})

-
+

SIRET : {{ entreprise.siret }}
Nom : {{ entreprise.nom }}
@@ -48,23 +48,25 @@

- {% if contacts %} -
- {% for contact in contacts %} - Contact {{loop.index}} - {% include 'entreprises/_contact.html' %} - {% endfor %} -
- {% endif %} +
+ {% if contacts %} +
+

Contacts

+ {% for contact in contacts %} + {% include 'entreprises/_contact.html' %} + {% endfor %} +
+ {% endif %} - {% if offres %} -
- {% for offre in offres %} - Offre {{loop.index}} (ajouté le {{offre[0].date_ajout.strftime('%d/%m/%Y') }}) - {% include 'entreprises/_offre.html' %} - {% endfor %} + {% if offres %} +
+

Offres

+ {% for offre in offres %} + {% include 'entreprises/_offre.html' %} + {% endfor %} +
+ {% endif %}
- {% endif %} {% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %}