Restyled select ticket category for new ticket

merge-requests/28/head
Mike Koch 8 years ago
parent 59cc8498cf
commit f176f2238f

@ -1042,11 +1042,14 @@ function print_select_category($number_of_categories) {
/* This will handle error, success and notice messages */ /* This will handle error, success and notice messages */
hesk_handle_messages(); hesk_handle_messages();
?> ?>
<section class="content">
<div style="text-align: center"> <div class="box">
<div class="box-header with-border">
<h3><?php echo $hesklang['select_category_staff']; ?></h3> <h1 class="box-title">
<?php echo $hesklang['select_category_staff']; ?>
</h1>
</div>
<div class="box-body">
<div class="select_category"> <div class="select_category">
<?php <?php
// Print a select box if number of categories is large // Print a select box if number of categories is large
@ -1054,7 +1057,7 @@ function print_select_category($number_of_categories) {
{ {
?> ?>
<form action="new_ticket.php" method="get"> <form action="new_ticket.php" method="get">
<select name="category" id="select_category"> <select name="category" id="select_category" class="form-control">
<?php <?php
if ($hesk_settings['select_cat']) if ($hesk_settings['select_cat'])
{ {
@ -1078,22 +1081,40 @@ function print_select_category($number_of_categories) {
// Otherwise print quick links // Otherwise print quick links
else else
{ {
?> // echo '<li><a href="new_ticket.php?a=add&amp;category='.$k.'">&raquo; '.$v.'</a></li>';
<ul id="ul_category"> $new_row = 1;
<?php
foreach ($hesk_settings['categories'] as $k=>$v) foreach ($hesk_settings['categories'] as $k=>$v):
{ if ($new_row == 1) {
echo '<li><a href="new_ticket.php?a=add&amp;category='.$k.'">&raquo; '.$v.'</a></li>'; echo '<div class="row">';
$new_row = -1;
} }
?> ?>
</ul> <div class="col-md-5 col-sm-12 <?php if ($new_row == -1) {echo 'col-md-offset-1';} ?>">
<a href="new_ticket.php?a=add&category=<?php echo $k; ?>" class="button-link">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<?php echo $v; ?>
</div>
</div>
</div>
</div>
</a>
</div>
<?php <?php
$new_row++;
if ($new_row == 1) {
echo '</div>';
}
endforeach;
} }
?> ?>
</div> </div>
</div> </div>
</div>
<p>&nbsp;</p> </section>
<?php <?php

@ -151,3 +151,21 @@ button.dropdown-submit {
.login-box-body { .login-box-body {
border-radius: 5px; border-radius: 5px;
} }
.button-link {
color: #4a5571;
}
.button-link:hover {
text-decoration: none;
color: #000;
}
.button-link .col-xs-1 {
margin: 0 auto;
padding: 0;
}
.button-link .panel-body:hover {
background-color: #EEE;
}

@ -90,12 +90,6 @@ function print_select_category($number_of_categories)
<li><a href="<?php echo $hesk_settings['hesk_url']; ?>"><?php echo $hesk_settings['hesk_title']; ?></a></li> <li><a href="<?php echo $hesk_settings['hesk_url']; ?>"><?php echo $hesk_settings['hesk_title']; ?></a></li>
<li class="active"><?php echo $hesklang['submit_ticket']; ?></li> <li class="active"><?php echo $hesklang['submit_ticket']; ?></li>
</ol> </ol>
<tr>
<td>
&nbsp;<br />
<?php <?php
/* This will handle error, success and notice messages */ /* This will handle error, success and notice messages */
hesk_handle_messages(); hesk_handle_messages();
@ -128,7 +122,7 @@ function print_select_category($number_of_categories)
&nbsp;<br /> &nbsp;<br />
<div style="text-align:center"> <div style="text-align:center">
<input type="submit" value="<?php echo $hesklang['c2c']; ?>" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /> <input type="submit" value="<?php echo $hesklang['c2c']; ?>" class="btn btn-default">
<input type="hidden" name="a" value="add" /> <input type="hidden" name="a" value="add" />
</div> </div>
</form> </form>
@ -169,8 +163,6 @@ function print_select_category($number_of_categories)
</div> </div>
</div> </div>
<p>&nbsp;</p>
<?php <?php
return true; return true;
} // END print_select_category() } // END print_select_category()

Loading…
Cancel
Save