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

amélioration graphique des formulaires

parent a3c149f9
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Autoform/src/Autoform/View/Helper/ChampAsInputHelper.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ class ChampAsInputHelper extends AbstractHelper
        switch($champ->getElement()) {

            case Champ::TYPE_LABEL :
                $texte .= '<strong>'.$champ->getLibelle().'</strong>';
                $texte .= '<h4>'.$champ->getLibelle().'</h4>';
                break;

            case Champ::TYPE_SPACER :
+1 −1
Changes for module/Autoform/src/Autoform/View/Helper/InstanceAsTextHelper.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ class InstanceAsTextHelper extends AbstractHelper
                }

                if (!empty($champs) && !(empty($results))) {
                    $text .= '<h3>' . $categorie->getLibelle() . '</h3>';
                    $text .= '<h3 class="categorie">' . $categorie->getLibelle() . '</h3>';
                    $text .= '<ul>';
                    /** @var Champ $champ */
                    foreach ($champs as $champ) {
+2 −2
Changes for module/Autoform/src/Autoform/View/Helper/partial/input/nombre.phtml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -11,10 +11,10 @@ $options = explode(';', $champ->getOptions());

<div class="row">
    <div class="form-group">
        <label for="text_<?php echo $champ->getId()?>" class="col-sm-2 control-label">
        <label for="text_<?php echo $champ->getId()?>" class="col-sm-3 control-label">
            <?php echo $champ->getLibelle()?>&nbsp;:
            </label>
        <div class="col-sm-10">
        <div class="col-sm-9">
            <input class="form-control" type="number" id="text_<?php echo $champ->getId()?>" name="<?php echo $champ->getId()?>" value="<?php echo trim($reponse); ?>"
                />
        </div>
+3 −2
Changes for module/Autoform/src/Autoform/View/Helper/partial/input/select.phtml: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -10,10 +10,10 @@ $options = explode(';', $champ->getOptions());
?>
<div class="row">
    <div class="form-group" style="display: block;">
    <label for="textarea_<?php echo $champ->getId()?>" class="col-sm-2 control-label">
        <label for="textarea_<?php echo $champ->getId()?>" class="col-sm-3 control-label">
            <?php echo $champ->getLibelle(); ?>&nbsp;:
        </label>
    <div class="col-sm-10">
        <div class="col-sm-9">
        <select class="form-control" name="<?php echo $champ->getId(); ?>">
            <option value="null"></option>
            <?php foreach ($options as $option) : ?>
@@ -26,6 +26,7 @@ $options = explode(';', $champ->getOptions());
                </option>
            <?php endforeach; ?>
        </select>
        <br/>
        </div>
    </div>
</div>
+2 −2
Changes for module/Autoform/src/Autoform/View/Helper/partial/input/text.phtml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -11,10 +11,10 @@ $options = explode(';', $champ->getOptions());

<div class="row">
    <div class="form-group">
        <label for="text_<?php echo $champ->getId()?>" class="col-sm-2 control-label">
        <label for="text_<?php echo $champ->getId()?>" class="col-sm-32 control-label">
            <?php echo $champ->getLibelle()?>&nbsp;:
            </label>
        <div class="col-sm-10">
        <div class="col-sm-9">
            <input class="form-control" type="text" id="text_<?php echo $champ->getId()?>" name="<?php echo $champ->getId()?>" value="<?php echo trim($reponse); ?>"
        </div>
    </div>
Loading