Files
opensourcepos/app/Views/attributes/manage.php
BudsieBuds 394883c813 Bootstrap 5 WIP
- work in progress build of conversion from bootstrap 3 to 5
2026-05-14 22:36:14 +02:00

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 modal-launch" 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" id="delete">
<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') ?>