From ed73ec976a1e96e245ba4410d4b03a2095a7bcfc Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 28 Sep 2022 13:03:48 +0200 Subject: [PATCH] wait #5487 @0.5 --- _doc/{ => _done}/Refacturations..ai | 0 _doc/{ => _done}/Simulations..ai | 0 js/script.js | 23 +++++- refacturations.php | 2 +- simulations.php | 112 ++++++++++++++++++++++++++++ style/inc/menu.sass | 2 +- style/inc/tags.sass | 18 +++++ style/inc/variables.sass | 7 +- style/style.sass | 7 +- 9 files changed, 162 insertions(+), 9 deletions(-) rename _doc/{ => _done}/Refacturations..ai (100%) rename _doc/{ => _done}/Simulations..ai (100%) create mode 100644 simulations.php create mode 100644 style/inc/tags.sass diff --git a/_doc/Refacturations..ai b/_doc/_done/Refacturations..ai similarity index 100% rename from _doc/Refacturations..ai rename to _doc/_done/Refacturations..ai diff --git a/_doc/Simulations..ai b/_doc/_done/Simulations..ai similarity index 100% rename from _doc/Simulations..ai rename to _doc/_done/Simulations..ai diff --git a/js/script.js b/js/script.js index 53898f6..abe78e5 100644 --- a/js/script.js +++ b/js/script.js @@ -19,9 +19,26 @@ $(function () { }); // Ajouter les symboles SVG - $("[data-icon]").each(function () { - $(this).append(getSpriteIcon('eif-' + $(this).data('icon'))); - }); + var updateIcons = function () { + $("[data-icon]").each(function () { + var iconId = 'eif-' + $(this).data('icon'); + // L'icône est déjà en place + if ($(this).find('svg.' + iconId).length) { + return; + } + // Si une autre icône est présente, on la supprime + $(this).find('svg.svg-icon').remove(); + // Puis on ajoute l'icône + var icon = getSpriteIcon(iconId); + if ($(this).is('[data-icon-prepend]')) { + $(this).prepend(icon); + } else { + $(this).append(icon); + } + }); + }; + updateIcons(); + // Menu : afficher le sous-menu au clic sur un élement $(document).on('click', '.open-submenu', function () { diff --git a/refacturations.php b/refacturations.php index 72a257e..dc3417f 100644 --- a/refacturations.php +++ b/refacturations.php @@ -10,7 +10,7 @@ Rechercher - Réinitialiser les filtres + Réinitialiser les filtres
diff --git a/simulations.php b/simulations.php new file mode 100644 index 0000000..dc60207 --- /dev/null +++ b/simulations.php @@ -0,0 +1,112 @@ + +
+ + + + + + + Rechercher + Réinitialiser les filtres +
+
+
+
+ + +
+

Simulations : 7 Scans TFPB-TEOM

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropriétaireAdresse cadastraleCode postalVilleNature du bienSurfaceMontant impôtMontant simuléScan
DE SAINT GENIS LAVALAvenue Charles de Gaulle
C. Co. St Genis 2
69230SAINT GENIS LAVALEnsemble commercial3 70048 34376 590 +
Sous imposition
+
DE SAINT GENIS LAVALAvenue Charles de Gaulle
C. Co. St Genis 2
69230SAINT GENIS LAVALEnsemble commercial3 70048 34376 590 +
Surimposition
+
DE SAINT GENIS LAVALAvenue Charles de Gaulle
C. Co. St Genis 2
69230SAINT GENIS LAVALEnsemble commercial3 70048 34376 590 +
Imposition correcte
+
DE SAINT GENIS LAVALAvenue Charles de Gaulle
C. Co. St Genis 2
69230SAINT GENIS LAVALEnsemble commercial3 70048 34376 590 +
Surimposition
+
+ +
+ \ No newline at end of file diff --git a/style/inc/menu.sass b/style/inc/menu.sass index 157f603..1c83080 100644 --- a/style/inc/menu.sass +++ b/style/inc/menu.sass @@ -117,7 +117,7 @@ $compact-menu-space: 15px $width: 70px - header + #menu width: $width .compact diff --git a/style/inc/tags.sass b/style/inc/tags.sass new file mode 100644 index 0000000..2760cec --- /dev/null +++ b/style/inc/tags.sass @@ -0,0 +1,18 @@ +.tag + color: #fff + border-radius: 3px + width: 180px + text-align: center + padding: 5px 0 + text-transform: uppercase + font-size: 14px + font-weight: bold + + &.red + background-color: $tag-red + &.yellow + background-color: $tag-yellow + &.green + background-color: $tag-green + &.orange + background-color: $tag-orange \ No newline at end of file diff --git a/style/inc/variables.sass b/style/inc/variables.sass index 0afc0d8..e158cc5 100644 --- a/style/inc/variables.sass +++ b/style/inc/variables.sass @@ -13,4 +13,9 @@ $button-color: #c1ce3a $input-text-color: #454565 $headings-color: #454565 $light-color:#a2a1bc -$space: 25px \ No newline at end of file +$space: 25px + +$tag-green: #c1ce3a +$tag-yellow: #F7D000 +$tag-orange: #f07800 +$tag-red: #d6231a diff --git a/style/style.sass b/style/style.sass index 241bb28..0813c97 100644 --- a/style/style.sass +++ b/style/style.sass @@ -20,9 +20,8 @@ body svg height: 30px position: absolute - top: 3px - right: 15px - + top: 5px + right: 13px main padding: $space $space $space $space*3+150px @@ -219,3 +218,5 @@ main @import "inc/forms" @import "inc/menu" @import "inc/switch" +@import "inc/tags" + -- 2.39.5