Files
opensourcepos/app/Views/attributes/manage.php
BudsieBuds ed1683cd7b Bye Glyphicons
- replaced glyphicons with bootstrap-icons
2025-12-02 22:18:36 +01:00

43 lines
1.2 KiB
PHP

<?php
/**
* @var string $controller_name
* @var string $table_headers
* @var array $config
*/
?>
<?= view('partial/header') ?>
<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 id="title_bar" class="btn-toolbar print_hide">
<button class="btn btn-info btn-sm pull-right modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= esc("$controller_name/view") ?>" title="<?= lang(ucfirst($controller_name) . ".new") ?>">
<i class="bi bi-star icon-spacing"></i><?= lang(ucfirst($controller_name) . ".new") ?>
</button>
</div>
<div id="toolbar">
<div class="pull-left form-inline" role="toolbar">
<button id="delete" class="btn btn-default btn-sm print_hide">
<i class="bi bi-trash icon-spacing"></i><?= lang('Common.delete') ?>
</button>
</div>
</div>
<div id="table_holder">
<table id="table"></table>
</div>
<?= view('partial/footer') ?>