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

up

parent d597243d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@ class ChampAsInputHelper extends AbstractHelper
        switch($champ->getElement()) {

            case Champ::TYPE_LABEL :
                $texte .= '<h4>'.$champ->getLibelle().'</h4>' . '<p>' . $champ->getTexte() . '</p>';
                if ($champ->getLibelle() !== 'empty') $texte .= '<h4>'.$champ->getLibelle().'</h4>';
                $texte .= '<p>' . $champ->getTexte() . '</p>';
                break;

            case Champ::TYPE_SPACER :
+7 −5
Original line number Diff line number Diff line
@@ -9,16 +9,18 @@ use Autoform\Entity\Db\Champ;
$options = explode(';', $champ->getOptions());
?>

<!--<div class="row">-->
<!--    <div class="form-group">-->
        <label for="text_<?php echo $champ->getId()?>" class="col-sm-2 control-label">
<div class="row">
    <div class="form-group">
        <?php if (trim($champ->getLibelle()) !== 'empty') : ?>
            <label for="text_<?php echo $champ->getId()?>" class="col-sm-3 control-label">
                <?php echo $champ->getLibelle()?>&nbsp;:
            </label>
        <?php endif; ?>
        <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>-->
<!--</div>-->
 No newline at end of file
    </div>
</div>
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -11,7 +11,9 @@ $options = explode(';', $champ->getOptions());

<div class="row">
    <div class="form-group">
        <?php if (trim($champ->getLibelle()) !== 'empty') : ?>
            <label for="textarea_<?php echo $champ->getId(); ?>"><?php echo $champ->getLibelle(); ?></label>
        <?php endif; ?>
        <div class="col-sm-12">
            <textarea class="form-control autoform-textarea" id="textarea_<?php echo $champ->getId(); ?>" name="<?php echo $champ->getId(); ?>" ><?php echo trim($reponse); ?></textarea>
        </div>