Start working on refactoring ticket table logic
This commit is contained in:
parent
f82d8e95d7
commit
5ce782d893
@ -61,8 +61,6 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 pad-down-20">
|
<div class="col-md-12 pad-down-20">
|
||||||
<?php
|
<?php
|
||||||
/* This will handle error, success and notice messages */
|
|
||||||
hesk_handle_messages();
|
|
||||||
|
|
||||||
/* Print tickets? */
|
/* Print tickets? */
|
||||||
if (hesk_checkPermission('can_view_tickets', 0)) {
|
if (hesk_checkPermission('can_view_tickets', 0)) {
|
||||||
|
@ -56,11 +56,33 @@ define('PAGE_TITLE', 'ADMIN_HOME');
|
|||||||
require_once(HESK_PATH . 'inc/header_new_admin.inc.php');
|
require_once(HESK_PATH . 'inc/header_new_admin.inc.php');
|
||||||
|
|
||||||
require_once(HESK_PATH . 'inc/new_admin_header_and_sidebar.inc.php');
|
require_once(HESK_PATH . 'inc/new_admin_header_and_sidebar.inc.php');
|
||||||
?>
|
|
||||||
|
|
||||||
|
hesk_handle_messages();
|
||||||
|
|
||||||
|
if (hesk_checkPermission('can_view_tickets', 0)) {
|
||||||
|
?>
|
||||||
|
<section class="content">
|
||||||
|
<div class="box">
|
||||||
|
<div class="box-header with-border">
|
||||||
|
<h1 class="box-title"><?php echo $hesklang['open_tickets']; ?></h1>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||||
|
<i class="fa fa-minus" data-toggle="tooltip" title="Collapse"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-body">
|
||||||
|
<table class="table table-hover">
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
} else {
|
||||||
|
echo '<p><i>' . $hesklang['na_view_tickets'] . '</i></p>';
|
||||||
|
}
|
||||||
|
|
||||||
require_once(HESK_PATH . 'inc/new_footer.inc.php');
|
require_once(HESK_PATH . 'inc/new_footer.inc.php');
|
||||||
exit();
|
exit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user