Loading module/Autoform/src/Autoform/View/Helper/ChampAsInputHelper.php +2 −1 Original line number Diff line number Diff line Loading @@ -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 : Loading module/Autoform/src/Autoform/View/Helper/partial/input/text.phtml +7 −5 Original line number Diff line number Diff line Loading @@ -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()?> : </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 module/Autoform/src/Autoform/View/Helper/partial/input/textarea.phtml +2 −0 Original line number Diff line number Diff line Loading @@ -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> Loading Loading
module/Autoform/src/Autoform/View/Helper/ChampAsInputHelper.php +2 −1 Original line number Diff line number Diff line Loading @@ -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 : Loading
module/Autoform/src/Autoform/View/Helper/partial/input/text.phtml +7 −5 Original line number Diff line number Diff line Loading @@ -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()?> : </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
module/Autoform/src/Autoform/View/Helper/partial/input/textarea.phtml +2 −0 Original line number Diff line number Diff line Loading @@ -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> Loading