mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-03 15:07:53 -05:00
* Improve code style and PSR-12 compliance - refactored code formatting to adhere to PSR-12 guidelines - standardized coding conventions across the codebase - added missing framework files and reverted markup changes - reformatted arrays for enhanced readability - updated language files for consistent styling and clarity - minor miscellaneous improvements
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* @var array $stock_locations
|
|
*/
|
|
?>
|
|
|
|
<?php
|
|
$i = 0;
|
|
|
|
foreach ($stock_locations as $location => $location_data) {
|
|
$location_id = $location_data['location_id'];
|
|
$location_name = $location_data['location_name'];
|
|
++$i;
|
|
?>
|
|
|
|
<div class="form-group form-group-sm" style="<?= $location_data['deleted'] ? 'display: none;' : 'display: block;' ?>">
|
|
<?= form_label(lang('Config.stock_location') . " $i", "stock_location_$i", ['class' => 'required control-label col-xs-2']) ?>
|
|
<div class="col-xs-2">
|
|
<?php $form_data = [
|
|
'name' => "stock_location[$location_id]",
|
|
'id' => "stock_location[$location_id]",
|
|
'class' => 'stock_location valid_chars form-control input-sm required',
|
|
'value' => $location_name
|
|
];
|
|
$location_data['deleted'] && $form_data['disabled'] = 'disabled';
|
|
echo form_input($form_data);
|
|
?>
|
|
</div>
|
|
<span class="add_stock_location glyphicon glyphicon-plus" style="padding-top: 0.5em;"></span>
|
|
<span> </span>
|
|
<span class="remove_stock_location glyphicon glyphicon-minus" style="padding-top: 0.5em;"></span>
|
|
</div>
|
|
|
|
<?php } ?>
|