Commit dcbfc453 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Correction + améloration des formulaires

parent 74bccf20
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -21,6 +21,13 @@ Une fois installée et les privilèges accordés, on retourve un menu **Aide** d
Changelog
=========

0.4.0
---
* Correction du bug hors connection de la documentation qui testait l'id du rôle sans précotion
* Modification des * dans les formulaires pour utiliser l'icone et le texte habituel

...

0.0.3 (30/05/2023)
----

+5 −3
Original line number Diff line number Diff line
@@ -32,7 +32,8 @@ class LienForm extends Form {
            'type' => Text::class,
            'name' => 'lien_texte',
            'options' => [
                'label' => "Texte du lien * :",
                'label' => "Texte du lien <span class='icon icon-obligatoire' title='Champ obligatoire'></span>:",
                'label_options' => [ 'disable_html_escape' => true, ],
            ],
            'attributes' => [
                'id' => 'lien_texte',
@@ -43,7 +44,8 @@ class LienForm extends Form {
            'type' => Text::class,
            'name' => 'lien_url',
            'options' => [
                'label' => "Adresse du lien * :",
                'label' => "Adresse du lien <span class='icon icon-obligatoire' title='Champ obligatoire'></span>:",
                'label_options' => [ 'disable_html_escape' => true, ],
            ],
            'attributes' => [
                'id' => 'question',
+4 −2
Original line number Diff line number Diff line
@@ -18,7 +18,8 @@ class QuestionForm extends Form {
            'type' => Text::class,
            'name' => 'question',
            'options' => [
                'label' => "Question * :",
                'label' => "Question <span class='icon icon-obligatoire' title='Champ obligatoire'></span>:",
                'label_options' => [ 'disable_html_escape' => true, ],
            ],
            'attributes' => [
                'id' => 'question',
@@ -29,7 +30,8 @@ class QuestionForm extends Form {
            'type' => Textarea::class,
            'name' => 'description',
            'options' => [
                'label' => "Réponse * :",
                'label' => "Réponse <span class='icon icon-obligatoire' title='Champ obligatoire'></span>:",
                'label_options' => [ 'disable_html_escape' => true, ],
            ],
            'attributes' => [
                'id' => 'description',
+5 −5
Original line number Diff line number Diff line
@@ -21,7 +21,8 @@ class DefinitionForm extends Form {
            'type' => Text::class,
            'name' => 'terme',
            'options' => [
                'label' => "Terme * :",
                'label' => "Terme <span class='icon icon-obligatoire' title='Champ obligatoire'></span>:",
                'label_options' => [ 'disable_html_escape' => true, ],
            ],
            'attributes' => [
                'id' => 'terme',
@@ -39,7 +40,8 @@ class DefinitionForm extends Form {
            'type' => Textarea::class,
            'name' => 'description',
            'options' => [
                'label' => "Définition :",
                'label' => "Définition <span class='icon icon-obligatoire' title='Champ obligatoire'></span>:",
                'label_options' => [ 'disable_html_escape' => true, ],
            ],
            'attributes' => [
                'id' => 'description',
@@ -63,9 +65,7 @@ class DefinitionForm extends Form {
            'name' => 'creer',
            'options' => [
                'label' => '<i class="fas fa-save"></i> Enregistrer',
                'label_options' => [
                    'disable_html_escape' => true,
                ],
                'label_options' => [ 'disable_html_escape' => true, ],
            ],
            'attributes' => [
                'type' => 'submit',
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ $this->headTitle("Documentation");
    <ul>
    <?php foreach ($liens as $lien) : ?>
        <?php
            $display = (empty($lien->getRoles()) OR in_array($role->getId(), $lien->getRoles()));
            $display = (empty($lien->getRoles()) OR ($role !== null AND in_array($role->getId(), $lien->getRoles())));
        ?>
        <?php if ($display) : ?>
            <li>