From 98684d3613e7d7f2ef08c36ed4fae826142ef5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 9 Feb 2022 16:10:13 +0100 Subject: [PATCH] =?UTF-8?q?d=C3=A9calage=20du=20bouton=20dans=20input=20fi?= =?UTF-8?q?le=20avec=20une=20notice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/template.class.php | 12 ++++++------ core/layout/common.css | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 836fd05a..d246b719 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -296,12 +296,6 @@ class template { } // Début du wrapper $html = '
'; - // Label - if($attributes['label']) { - $html .= self::label($attributes['id'], $attributes['label'], [ - 'help' => $attributes['help'] - ]); - } // Notice $notice = ''; if(array_key_exists($attributes['id'], common::$inputNotices)) { @@ -309,6 +303,12 @@ class template { $attributes['class'] .= ' notice'; } $html .= self::notice($attributes['id'], $notice); + // Label + if($attributes['label']) { + $html .= self::label($attributes['id'], $attributes['label'], [ + 'help' => $attributes['help'] + ]); + } // Champ caché contenant l'url de la page $html .= self::hidden($attributes['id'], [ 'class' => 'inputFileHidden', diff --git a/core/layout/common.css b/core/layout/common.css index d21cb214..451a10d0 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -339,10 +339,11 @@ td>.col12 { display: inline-block; color: #E74C3C; } -/* Mauvaise position dans les champs File*/ + +/* Mauvaise position dans les champs File .inputFile.notice { display: block; -} +}*/ /* Container */ .container {