diff --git a/CHANGES.md b/CHANGES.md index 15c303b8..19fcf949 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,8 +14,11 @@ - Nouvelle option permettant de transférer les fichiers de sauvegarde automatiques dans le gestionnaire de fichiers. ## version 10.6.01 -Correction : +Corrections : + - Champs de formulaire, uniformisation de la hauteur (select, input, etc) identique à celle des boutons à 9px. - Module search : texte d'aide dans la zone de saisie non pris en compte. +Modification : + - Ajout au sélecteur de date d'un bouton d'effacement identique à celui du sélecteur de fichiers. ## version 10.6.00 Cette version apporte aux modules une autonomie complète par rapport au noyau. diff --git a/core/class/template.class.php b/core/class/template.class.php index 479b6258..6eed2096 100755 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -247,12 +247,18 @@ class template { } $html .= self::notice($attributes['id'], $notice); // Date visible + $html .= '
'; $html .= sprintf( '', $attributes['class'], $attributes['value'], helper::sprintAttributes($attributes, ['class', 'value']) ); + $html .= self::button($attributes['id'] . 'Delete', [ + 'class' => 'inputDateDelete', + 'value' => self::ico('cancel') + ]); + $html .= '
'; // Fin du wrapper $html .= ''; // Retourne le html diff --git a/core/core.js.php b/core/core.js.php index cf0b1352..da8e765c 100755 --- a/core/core.js.php +++ b/core/core.js.php @@ -288,6 +288,10 @@ core.start = function() { $(".inputFileDelete").on("click", function() { $(this).parents(".inputWrapper").find(".inputFileHidden").val("").trigger("change"); }); + // Suppression de la date contenu dans le champ + $(".inputDateDelete").on("click", function() { + $(this).parents(".inputWrapper").find(".datepicker").val("").trigger("change"); + }); // Confirmation de mise à jour $("#barUpdate").on("click", function() { return core.confirm("Effectuer la mise à jour ?", function() { diff --git a/core/layout/common.css b/core/layout/common.css index 92dcab89..f69350b1 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -1092,7 +1092,7 @@ input[type='password'], .inputFile, select, textarea { - padding: 10px; + padding: 9px; /* -1px à cause des bordures */ /*background: #FFF;*/ border: 1px solid #D8DFE3; @@ -1103,7 +1103,7 @@ textarea { } select { - padding: 7px; + padding: 9px; } input[type='email']:hover, @@ -1214,13 +1214,13 @@ label { } /* Upload de fichiers */ -.inputFile { +.inputFile, .datepicker { margin: 0; display: inline-block; - width: 88%; + width: 88% !important; } -.inputFileDelete { +.inputFileDelete, .inputDateDelete { display: block; width: 10%; padding: 10px 0; @@ -1235,11 +1235,11 @@ label { } /* Empêche le débordement et les sauts de ligne */ -.inputFileManagerWrapper { +.inputFileManagerWrapper, .inputDateManagerWrapper { display: inline; } -.inputFileManagerWrapper>.inputFile { +.inputFileManagerWrapper>.inputFile, .inputDateManagerWrapper>.inputFile { white-space: nowrap; overflow: hidden; text-overflow: ellipsis;