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
57 lines
1.7 KiB
PHP
57 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* @var array $stock_locations
|
|
* @var array $item_count
|
|
*/
|
|
?>
|
|
|
|
<?= view('partial/header') ?>
|
|
|
|
<script type="text/javascript">
|
|
dialog_support.init("a.modal-dlg");
|
|
</script>
|
|
|
|
<div id="page_title"><?= lang('Reports.report_input') ?></div>
|
|
|
|
<?php
|
|
if (isset($error)) {
|
|
echo '<div class="alert alert-dismissible alert-danger">' . esc($error) . '</div>';
|
|
}
|
|
?>
|
|
|
|
<?= form_open('#', ['id' => 'item_form', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal']) ?>
|
|
|
|
<div class="form-group form-group-sm">
|
|
<?= form_label(lang('Reports.stock_location'), 'reports_stock_location_label', ['class' => 'control-label col-xs-2 text-danger required']) ?>
|
|
<div id="report_stock_location" class="col-xs-3">
|
|
<?= form_dropdown('stock_location', $stock_locations, 'all', 'id="location_id" class="form-control"') ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group form-group-sm">
|
|
<?= form_label(lang('Reports.item_count'), 'reports_item_count_label', ['class' => 'control-label col-xs-2 text-danger required']) ?>
|
|
<div id="report_item_count" class="col-xs-3">
|
|
<?= form_dropdown('item_count', $item_count, 'all', 'id="item_count" class="form-control"') ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
echo form_button([
|
|
'name' => 'generate_report',
|
|
'id' => 'generate_report',
|
|
'content' => lang('Common.submit'),
|
|
'class' => 'btn btn-primary btn-sm'
|
|
]) ?>
|
|
|
|
<?= form_close() ?>
|
|
|
|
<?= view('partial/footer') ?>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#generate_report").click(function() {
|
|
window.location = [window.location, $("#location_id").val(), $("#item_count").val()].join("/");
|
|
});
|
|
});
|
|
</script>
|