mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-08 10:32:09 -04:00
* fix(tabs): resolve inner tab active switching, adjust padding, and correct tab title showing 'system_conf' instead of 'system_info' * fix(views): enhance config forms with multi-breakpoint responsive grids for better readability and usability on smaller screens * refactor(shortcuts): remove redundant container wrappers and optimize grid column widths for proper spacing * refactor(system-info): replace min-height hacks with form-horizontal rows, adopt utility classes, and fix timezone check * style: replace hardcoded red with 'text-danger' on required labels for proper Bootswatch theme integration * chore: update dev dependency
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* @var array $dinner_tables
|
|
*/
|
|
?>
|
|
|
|
<?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="form-group form-group-sm" style="<?= $table['deleted'] ? 'display: none;' : 'display: block;' ?>">
|
|
<?= form_label(lang('Config.dinner_table') . " $i", "dinner_table_$i", ['class' => 'control-label col-xs-3 col-sm-2 text-danger required']) ?>
|
|
<div class="col-xs-7 col-sm-4 col-md-3">
|
|
<?php $form_data = [
|
|
'name' => "dinner_table_$dinner_table_id",
|
|
'id' => "dinner_table_$dinner_table_id",
|
|
'class' => 'dinner_table valid_chars form-control input-sm required',
|
|
'value' => $dinner_table_name
|
|
];
|
|
$table['deleted'] && $form_data['disabled'] = 'disabled';
|
|
echo form_input($form_data);
|
|
?>
|
|
</div>
|
|
<span class="add_dinner_table glyphicon glyphicon-plus" style="padding-top: 0.5em;"></span>
|
|
<span> </span>
|
|
<span class="remove_dinner_table glyphicon glyphicon-minus" style="padding-top: 0.5em;"></span>
|
|
</div>
|
|
|
|
<?php } ?>
|