Files
opensourcepos/app/Views/partial/dinner_tables.php
BudsieBuds 394883c813 Bootstrap 5 WIP
- work in progress build of conversion from bootstrap 3 to 5
2026-05-14 22:36:14 +02:00

30 lines
1.2 KiB
PHP

<?php
/**
* @var array $dinner_tables
*/
?>
<span class="d-flex justify-content-start add_dinner_table">
<button type="button" class="btn btn-outline-success mb-3"><i class="bi bi-plus-lg"></i>&nbsp;Add table</button> <!-- TODO-BS5 translate -->
</span>
<?php
$i = 0;
foreach ($dinner_tables as $table_key => $table) {
$dinner_table_id = $table['dinner_table_id'];
$dinner_table_name = $table['name'];
++$i;
?>
<div class="col-12 col-lg-6 <?= $table['deleted'] ? 'd-none' : '' ?>">
<label for="dinner_table_<?= $dinner_table_id ?>" class="form-label"><?= lang('Config.dinner_table') . " $i"; ?></label>
<div class="input-group mb-3">
<span class="input-group-text"><?= $dinner_table_id ?>.</span>
<input type="text" class="form-control dinner_table valid_chars" name="dinner_table_<?= $dinner_table_id ?>" id="dinner_table_<?= $dinner_table_id ?>" value="<?= $dinner_table_name ?>" required <?= $table['deleted'] && $form_data['disabled'] = 'disabled' ?>>
<button type="button" class="btn btn-outline-danger remove_dinner_table"><i class="bi bi-x-lg"></i></button>
</div>
</div>
<?php } ?>