Merge pull request #312 from mkoch227/submit-ticket-quick-help
#309 Add submit ticket page (staff) to quick help section setting
This commit is contained in:
commit
2ad48fad38
@ -137,6 +137,12 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
|
||||
/* Print admin navigation */
|
||||
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
|
||||
$columnWidth = 'col-md-8';
|
||||
$showRs = hesk_dbQuery("SELECT `show` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."quick_help_sections` WHERE `id` = 5");
|
||||
$show = hesk_dbFetchAssoc($showRs);
|
||||
if (!$show['show']) {
|
||||
$columnWidth = 'col-md-10 col-md-offset-1';
|
||||
}
|
||||
?>
|
||||
|
||||
<ol class="breadcrumb">
|
||||
@ -144,6 +150,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
<li class="active"><?php echo $hesklang['nti2']; ?></li>
|
||||
</ol>
|
||||
<div class="row" style="margin-top: 20px">
|
||||
<?php if ($columnWidth == 'col-md-8'): ?>
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo $hesklang['quick_help']; ?></div>
|
||||
@ -154,7 +161,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<?php endif; ?>
|
||||
<div class="<?php echo $columnWidth; ?>">
|
||||
<?php
|
||||
/* This will handle error, success and notice messages */
|
||||
hesk_handle_messages();
|
||||
@ -1063,7 +1071,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
|
||||
// Request for the users location if enabled
|
||||
|
@ -570,6 +570,8 @@ function execute240Scripts() {
|
||||
VALUES ('view_ticket', '1')");
|
||||
executeQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."quick_help_sections` (`location`, `show`)
|
||||
VALUES ('knowledgebase', '1')");
|
||||
executeQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."quick_help_sections` (`location`, `show`)
|
||||
VALUES ('staff_create_ticket', '1')");
|
||||
|
||||
// Setup status improvement tables
|
||||
executeQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."text_to_status_xref` (
|
||||
|
@ -29,9 +29,10 @@ $hesklang['category_sort_help'] = 'Determines if categories shown on the manage
|
||||
sorted alphabetically.';
|
||||
$hesklang['quick_help_sections'] = 'Quick Help Sections';
|
||||
$hesklang['quick_help_sections_help'] = 'Check the checkbox to show the "Quick Help" sections on the left-hand side, or uncheck to not show.';
|
||||
$hesklang['create_ticket'] = 'Create ticket';
|
||||
$hesklang['create_ticket'] = 'Create ticket (customers)';
|
||||
$hesklang['view_ticket_form'] = 'View ticket form';
|
||||
$hesklang['knowledgebase'] = 'Knowledgebase section';
|
||||
$hesklang['staff_create_ticket'] = 'Create ticket (staff)';
|
||||
$hesklang['allow_rich_text_for_tickets'] = 'Allow rich text for tickets';
|
||||
$hesklang['allow_rich_text_for_tickets_help'] = 'Allow staff and customers to use rich text formatting when writing ticket messages / replies.';
|
||||
$hesklang['click_to_edit_name'] = 'Click to edit name';
|
||||
|
Loading…
x
Reference in New Issue
Block a user