Files
opensourcepos/app/Views/partial/customer_rewards.php
T
BudsieBuds aae3c6d683 fix(config): improve responsive layout, nested tabs behavior, and label theming (#4719)
* 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
2026-10-07 18:45:03 +04:00

47 lines
1.9 KiB
PHP

<?php
/**
* @var array $customer_rewards
*/
?>
<?php
$i = 0;
foreach ($customer_rewards as $reward_key => $reward_category) {
$customer_reward_id = $reward_category['package_id'];
$customer_reward_name = $reward_category['package_name'];
$customer_points_percent = $reward_category['points_percent'];
++$i;
?>
<div class="form-group form-group-sm" style="<?= $reward_category['deleted'] ? 'display: none;' : 'display: block;' ?>">
<?= form_label(lang('Config.customer_reward') . " $i", "customer_reward_$i", ['class' => 'control-label col-xs-3 col-sm-2 text-danger required']) ?>
<div class="col-xs-4 col-md-3">
<?php $form_data = [
'name' => 'customer_reward_' . $customer_reward_id,
'id' => 'customer_reward_' . $customer_reward_id,
'class' => 'customer_reward valid_chars form-control input-sm required',
'value' => $customer_reward_name
];
$reward_category['deleted'] && $form_data['disabled'] = 'disabled';
echo form_input($form_data);
?>
</div>
<div class="col-xs-3 col-md-2">
<?php $form_data = [
'name' => 'reward_points_' . $customer_reward_id,
'id' => 'reward_points_' . $customer_reward_id,
'class' => 'customer_reward valid_chars form-control input-sm required',
'value' => $customer_points_percent
];
$reward_category['deleted'] && $form_data['disabled'] = 'disabled';
echo form_input($form_data);
?>
</div>
<span class="add_customer_reward glyphicon glyphicon-plus" style="padding-top: 0.5em;"></span>
<span>&nbsp;&nbsp;</span>
<span class="remove_customer_reward glyphicon glyphicon-minus" style="padding-top: 0.5em;"></span>
</div>
<?php } ?>