diff --git a/core/class/template.class.php b/core/class/template.class.php index 16cbef01..47c24f93 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -19,15 +19,17 @@ class template { 'name' => $nameId, 'target' => '', 'uniqueSubmission' => false, - 'value' => 'Bouton' + 'value' => 'Bouton', + 'help' => '' ], $attributes); // Retourne le html return sprintf( - '%s', + '%s', helper::sprintAttributes($attributes, ['class', 'disabled', 'ico', 'value']), $attributes['disabled'] ? 'disabled' : '', $attributes['class'], $attributes['uniqueSubmission'] ? 'uniqueSubmission' : '', + $attributes['help'] ? ' title="' . $attributes['help'] . '" ': '', ($attributes['ico'] ? template::ico($attributes['ico'], 'right') : '') . $attributes['value'] ); } diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index 6cf6be20..72ccf753 100644 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -21,7 +21,8 @@ 'buttonRed', 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'], - 'value' => template::ico('cancel') + 'value' => template::ico('cancel'), + 'help' => 'Effacer la page' ]); ?>