Loading src/UnicaenAutoform/View/Helper/partial/input/select_text.phtml +5 −2 Changes for src/UnicaenAutoform/View/Helper/partial/input/select_text.phtml: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ */ use UnicaenAutoform\Entity\Db\Champ; $optionsAndLibelle = explode('|', $champ->getOptions()); $options = explode(';', $optionsAndLibelle[0]); $reponse = explode(':::', $reponse); Loading @@ -14,7 +15,8 @@ $reponse = explode(':::', $reponse); <label for="<?php echo $champ->getId() ?>" class="control-label"> <strong><?php echo $champ->getLibelle(); ?> :</strong> </label> <select class="form-control col-md-12" name="<?php echo $champ->getId(); ?>" id="<?php echo $champ->getId(); ?>" onchange="showComplement(this.value, this.name)"> <select class="form-control col-md-12" name="<?php echo $champ->getId(); ?>" id="<?php echo $champ->getId(); ?>" onchange="showComplement(this.value, this.name)"> <option value="null"></option> <?php foreach ($options as $option) : ?> <option id="<?php echo trim($option); ?>" value="<?php echo trim($option); ?>" Loading @@ -29,7 +31,7 @@ $reponse = explode(':::', $reponse); <br/> </div> </div> <div class="row"> <div id="text_complementaire_<?php echo $champ->getId() ?>" class="col-md-12" style="display:none"> <label for="text_complementaire_<?php echo $champ->getId() ?>"> <?php if (count($optionsAndLibelle) > 1): ?> Loading @@ -44,6 +46,7 @@ $reponse = explode(':::', $reponse); <?php endif; ?> /> </div> </div> <script> Loading Loading
src/UnicaenAutoform/View/Helper/partial/input/select_text.phtml +5 −2 Changes for src/UnicaenAutoform/View/Helper/partial/input/select_text.phtml: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ */ use UnicaenAutoform\Entity\Db\Champ; $optionsAndLibelle = explode('|', $champ->getOptions()); $options = explode(';', $optionsAndLibelle[0]); $reponse = explode(':::', $reponse); Loading @@ -14,7 +15,8 @@ $reponse = explode(':::', $reponse); <label for="<?php echo $champ->getId() ?>" class="control-label"> <strong><?php echo $champ->getLibelle(); ?> :</strong> </label> <select class="form-control col-md-12" name="<?php echo $champ->getId(); ?>" id="<?php echo $champ->getId(); ?>" onchange="showComplement(this.value, this.name)"> <select class="form-control col-md-12" name="<?php echo $champ->getId(); ?>" id="<?php echo $champ->getId(); ?>" onchange="showComplement(this.value, this.name)"> <option value="null"></option> <?php foreach ($options as $option) : ?> <option id="<?php echo trim($option); ?>" value="<?php echo trim($option); ?>" Loading @@ -29,7 +31,7 @@ $reponse = explode(':::', $reponse); <br/> </div> </div> <div class="row"> <div id="text_complementaire_<?php echo $champ->getId() ?>" class="col-md-12" style="display:none"> <label for="text_complementaire_<?php echo $champ->getId() ?>"> <?php if (count($optionsAndLibelle) > 1): ?> Loading @@ -44,6 +46,7 @@ $reponse = explode(':::', $reponse); <?php endif; ?> /> </div> </div> <script> Loading