388,7 → 388,6 |
<form id="form-supp" class="bloc-top" role="form" autocomplete="on"> |
<h2><?php echo $chpsupp['titre']; ?></h2> |
<div id="zone-supp" class="row"> |
<div class="col-md-6"> |
|
<?php foreach( $widget['chpSupp'][ $widget['projet'] ]['champs-supp'] as $champ ) : ?> |
<?php |
415,8 → 414,9 |
$required = ' required'; |
// class="obligatoire" |
$mandatory = ' obligatoire'; |
} |
|
}?> |
<div class="col-md-6"> |
<?php |
switch( $champ['element'] ) { |
case 'radio': |
case 'checkbox': ?> |
521,9 → 521,7 |
<?php else : ?> |
<option id="other-<?php echo $champ['key']; ?>" class="other form-control is-select" value="other" data-element="<?php echo $champ['element']; ?>" data-name="<?php echo $champ['key']; ?>">Autre</option> |
<?php endif; ?> |
|
<?php endforeach; ?> |
|
</select> |
</div> |
</div> |
548,12 → 546,12 |
|
if ( isset( $champ['fieldValues']['min'] ) ) { |
$div_range_min_max = |
"<p class=\"col-sm-2 range-values text-center font-weight-bold\">". |
"<p class=\"col-2 range-values text-center font-weight-bold\">". |
"Min " . $champ['fieldValues']['min'] . |
"</p>"; |
} |
|
$div_range_min_max .= '<div class="range-live-value range-values text-center font-weight-bold col-sm-'; |
$div_range_min_max .= '<div class="range-live-value range-values text-center font-weight-bold col-'; |
|
if ( isset( $champ['fieldValues']['min'] ) && isset( $champ['fieldValues']['max'] ) ) { |
$div_range_min_max .= '8'; |
567,7 → 565,7 |
|
if( isset( $champ['fieldValues']['max'] ) ) { |
$div_range_min_max .= |
"<p class=\"col-sm-2 range-values text-center font-weight-bold\">". |
"<p class=\"col-2 range-values text-center font-weight-bold\">". |
"Max " . $champ['fieldValues']['max'] . |
"</p>"; |
} |
601,10 → 599,9 |
<?php break; |
} |
?> |
|
</div> |
<?php endforeach; ?> |
</div> |
</div> |
</form> |
<?php endif; ?><!-- Fin champs supplémentaires --> |
|