Browse Source

remplace le select par des boutons radio

master
vince vince 3 years ago
parent
commit
ac8bd6f279
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      index.php

+ 5
- 5
index.php View File

@ -359,12 +359,12 @@ if (!$isConfig and $hasSupplier) {
<div class="row mb-3">
<label for="title" class="col-sm-2 col-form-label">Choix</label>
<div class="col-sm-10">
<select class="form-select" name="choice" required>
<option/>
<?php foreach ($config[$supplier]['choices'] as $choice) : ?>
<option><?php echo $choice; ?></option>
<div class="btn-group" role="group">
<?php foreach ($config[$supplier]['choices'] as $index => $choice) : ?>
<input type="radio" class="btn-check" id="<?php printf('option%d', $index); ?>" autocomplete="off" name="choice" value="<?php echo $choice; ?>" />
<label class="btn btn-outline-secondary" for="<?php printf('option%d', $index); ?>"><?php echo $choice; ?></label>
<?php endforeach; ?>
</select>
</div>
</div>
</div>
<?php endif; ?>


Loading…
Cancel
Save