Manage categories uses new UI
This commit is contained in:
parent
e865412b5f
commit
774d775c11
@ -37,6 +37,7 @@ define('PAGE_TITLE', 'ADMIN_CATEGORIES');
|
|||||||
require(HESK_PATH . 'hesk_settings.inc.php');
|
require(HESK_PATH . 'hesk_settings.inc.php');
|
||||||
require(HESK_PATH . 'inc/common.inc.php');
|
require(HESK_PATH . 'inc/common.inc.php');
|
||||||
require(HESK_PATH . 'inc/admin_functions.inc.php');
|
require(HESK_PATH . 'inc/admin_functions.inc.php');
|
||||||
|
require(HESK_PATH . 'inc/mail_functions.inc.php');
|
||||||
hesk_load_database_functions();
|
hesk_load_database_functions();
|
||||||
|
|
||||||
hesk_session_start();
|
hesk_session_start();
|
||||||
@ -49,9 +50,9 @@ hesk_checkPermission('can_man_cat');
|
|||||||
// Possible priorities
|
// Possible priorities
|
||||||
$priorities = array(
|
$priorities = array(
|
||||||
3 => array('value' => 3, 'text' => $hesklang['low'], 'formatted' => $hesklang['low']),
|
3 => array('value' => 3, 'text' => $hesklang['low'], 'formatted' => $hesklang['low']),
|
||||||
2 => array('value' => 2, 'text' => $hesklang['medium'], 'formatted' => '<font class="medium">' . $hesklang['medium'] . '</font>'),
|
2 => array('value' => 2, 'text' => $hesklang['medium'], 'formatted' => '<span class="medium">' . $hesklang['medium'] . '</span>'),
|
||||||
1 => array('value' => 1, 'text' => $hesklang['high'], 'formatted' => '<font class="important">' . $hesklang['high'] . '</font>'),
|
1 => array('value' => 1, 'text' => $hesklang['high'], 'formatted' => '<span class="important">' . $hesklang['high'] . '</span>'),
|
||||||
0 => array('value' => 0, 'text' => $hesklang['critical'], 'formatted' => '<font class="critical">' . $hesklang['critical'] . '</font>'),
|
0 => array('value' => 0, 'text' => $hesklang['critical'], 'formatted' => '<span class="critical">' . $hesklang['critical'] . '</span>'),
|
||||||
);
|
);
|
||||||
|
|
||||||
/* What should we do? */
|
/* What should we do? */
|
||||||
@ -106,13 +107,19 @@ while ($mycat = hesk_dbFetchAssoc($res)) {
|
|||||||
$options .= '>' . $mycat['name'] . '</option>';
|
$options .= '>' . $mycat['name'] . '</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="row move-down-20">
|
<section class="content">
|
||||||
<div align="left" class="col-md-4">
|
<div class="box collapsed-box">
|
||||||
<div class="panel panel-default">
|
<div class="box-header with-border">
|
||||||
<div class="panel-heading">
|
<h1 class="box-title">
|
||||||
<?php echo $hesklang['add_cat']; ?>
|
<?php echo $hesklang['add_cat']; ?>
|
||||||
|
</h1>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||||
|
<i class="fa fa-plus"></i>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
<div class="box-body">
|
||||||
<form action="manage_categories.php" method="post" role="form" class="form-horizontal" data-toggle="validator">
|
<form action="manage_categories.php" method="post" role="form" class="form-horizontal" data-toggle="validator">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<p class="col-sm-4 control-label" style="font-size: .87em">
|
<p class="col-sm-4 control-label" style="font-size: .87em">
|
||||||
@ -151,7 +158,7 @@ while ($mycat = hesk_dbFetchAssoc($res)) {
|
|||||||
echo '<option value="' . $value . '"' . ($_SESSION['cat_priority'] == $value ? ' selected="selected"' : '') . '>' . $info['text'] . '</option>';
|
echo '<option value="' . $value . '"' . ($_SESSION['cat_priority'] == $value ? ' selected="selected"' : '') . '>' . $info['text'] . '</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></p>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -210,15 +217,20 @@ while ($mycat = hesk_dbFetchAssoc($res)) {
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="box">
|
||||||
<div class="col-md-8">
|
<div class="box-header with-border">
|
||||||
<div class="panel panel-default">
|
<h1 class="box-title">
|
||||||
<div class="panel-heading">
|
|
||||||
<?php echo $hesklang['manage_cat']; ?> <a href="javascript:void(0)"
|
<?php echo $hesklang['manage_cat']; ?> <a href="javascript:void(0)"
|
||||||
onclick="javascript:alert('<?php echo hesk_makeJsString($hesklang['cat_intro']); ?>')"><i
|
onclick="javascript:alert('<?php echo hesk_makeJsString($hesklang['cat_intro']); ?>')"><i
|
||||||
class="fa fa-question-circle settingsquestionmark"></i></a>
|
class="fa fa-question-circle settingsquestionmark"></i></a>
|
||||||
|
</h1>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||||
|
<i class="fa fa-minus"></i>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
<div class="box-body">
|
||||||
<?php
|
<?php
|
||||||
/* This will handle error, success and notice messages */
|
/* This will handle error, success and notice messages */
|
||||||
hesk_handle_messages();
|
hesk_handle_messages();
|
||||||
@ -365,8 +377,7 @@ while ($mycat = hesk_dbFetchAssoc($res)) {
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
|
||||||
<!-- Edit category modal -->
|
<!-- Edit category modal -->
|
||||||
<div class="modal fade" id="edit-category-modal" tabindex="-1" role="dialog" style="overflow: hidden">
|
<div class="modal fade" id="edit-category-modal" tabindex="-1" role="dialog" style="overflow: hidden">
|
||||||
<div class="modal-dialog modal-lg" role="document">
|
<div class="modal-dialog modal-lg" role="document">
|
||||||
|
@ -15,6 +15,18 @@
|
|||||||
color: orange;
|
color: orange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.medium {
|
||||||
|
color: #FF9900;
|
||||||
|
}
|
||||||
|
|
||||||
.gray {
|
.gray {
|
||||||
color: grey;
|
color: grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.critical {
|
||||||
|
color: #9400d3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blue {
|
||||||
|
color: blue;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user