mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-05 16:07:55 -05:00
48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* @var string $controller_name
|
|
* @var string $table_headers
|
|
* @var array $config
|
|
*/
|
|
?>
|
|
|
|
<?= view('partial/header') ?>
|
|
|
|
<?php
|
|
$title_info['config_title'] = 'Attributes';
|
|
echo view('configs/config_header', $title_info);
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
<?= view('partial/bootstrap_tables_locale') ?>
|
|
|
|
table_support.init({
|
|
resource: '<?= esc($controller_name) ?>',
|
|
headers: <?= $table_headers ?>,
|
|
pageSize: <?= $config['lines_per_page'] ?>,
|
|
uniqueId: 'definition_id'
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div class="d-flex gap-2 justify-content-end d-print-none">
|
|
<button type="button" class="btn btn-primary" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= esc('$controller_name/view') ?>" title="<?= lang(ucfirst($controller_name). '.new') ?>">
|
|
<i class="bi bi-star me-2"></i><?= lang(ucfirst($controller_name). '.new') ?>
|
|
</button>
|
|
</div>
|
|
|
|
<div id="toolbar">
|
|
<div class="d-flex gap-2">
|
|
<button type="button" class="btn btn-secondary d-print-none">
|
|
<i class="bi bi-trash"></i><span class="d-none d-sm-inline ms-2"><?= lang('Common.delete') ?></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="table_holder">
|
|
<table id="table"></table>
|
|
</div>
|
|
|
|
<?= view('partial/footer') ?>
|