Commit 99f50c51 authored by Florian Joriot's avatar Florian Joriot
Browse files

Mise en page

parent 1721b41a
Loading
Loading
Loading
Loading
Loading
+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
@@ -5,6 +5,7 @@
 */

use UnicaenAutoform\Entity\Db\Champ;

$optionsAndLibelle = explode('|', $champ->getOptions());
$options           = explode(';', $optionsAndLibelle[0]);
$reponse           = explode(':::', $reponse);
@@ -14,7 +15,8 @@ $reponse = explode(':::', $reponse);
        <label for="<?php echo $champ->getId() ?>" class="control-label">
            <strong><?php echo $champ->getLibelle(); ?>&nbsp;:</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); ?>"
@@ -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): ?>
@@ -44,6 +46,7 @@ $reponse = explode(':::', $reponse);
            <?php endif; ?>
        />
    </div>
</div>

<script>