#209 Tweak the statuses UI
- Remove "Language Key" input field - Add panels to separate content - Add pencil icon w/tooltip that will soon hold a way to edit the name
This commit is contained in:
parent
d928a1956b
commit
98e589dfb4
@ -77,10 +77,6 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
/* This will handle error, success and notice messages */
|
/* This will handle error, success and notice messages */
|
||||||
hesk_handle_messages();
|
hesk_handle_messages();
|
||||||
|
|
||||||
?>
|
|
||||||
<h6 style="font-weight: bold"><?php echo $hesklang['basicProperties']; ?></h6>
|
|
||||||
<div class="footerWithBorder blankSpace"></div>
|
|
||||||
<?php
|
|
||||||
//-- We need to get all of the statuses and dump the information to the page.
|
//-- We need to get all of the statuses and dump the information to the page.
|
||||||
$statusesSql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'statuses`';
|
$statusesSql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'statuses`';
|
||||||
$closedStatusesSql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'statuses` WHERE `IsClosed` = 1';
|
$closedStatusesSql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'statuses` WHERE `IsClosed` = 1';
|
||||||
@ -88,12 +84,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
$statusesRS = hesk_dbQuery($statusesSql);
|
$statusesRS = hesk_dbQuery($statusesSql);
|
||||||
?>
|
?>
|
||||||
<form class="form-horizontal" method="post" action="manage_statuses.php" role="form">
|
<form class="form-horizontal" method="post" action="manage_statuses.php" role="form">
|
||||||
<div class="table-responsive">
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h4><?php echo $hesklang['basicProperties']; ?></h4>
|
||||||
|
</div>
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo $hesklang['name']; ?></th>
|
<th><?php echo $hesklang['name']; ?></th>
|
||||||
<th><?php echo $hesklang['language_key']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" title="<?php echo $hesklang['language_key']; ?>" data-content="<?php echo $hesklang['language_key_description']; ?>"></i></th>
|
|
||||||
<th><?php echo $hesklang['textColor']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" title="<?php echo $hesklang['textColor']; ?>" data-content="<?php echo $hesklang['textColorDescr']; ?>"></i></th>
|
<th><?php echo $hesklang['textColor']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" title="<?php echo $hesklang['textColor']; ?>" data-content="<?php echo $hesklang['textColorDescr']; ?>"></i></th>
|
||||||
<th><?php echo $hesklang['closable_question']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="htmlpopover" data-placement="bottom" title="<?php echo $hesklang['closable_question']; ?>" data-content="<?php echo $hesklang['closable_description']; ?>"></i></th>
|
<th><?php echo $hesklang['closable_question']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="htmlpopover" data-placement="bottom" title="<?php echo $hesklang['closable_question']; ?>" data-content="<?php echo $hesklang['closable_description']; ?>"></i></th>
|
||||||
<th><?php echo $hesklang['closedQuestionMark']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" data-placement="top" title="<?php echo $hesklang['closedQuestionMark']; ?>" data-content="<?php echo $hesklang['closedQuestionMarkDescr']; ?>"></i></th>
|
<th><?php echo $hesklang['closedQuestionMark']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" data-placement="top" title="<?php echo $hesklang['closedQuestionMark']; ?>" data-content="<?php echo $hesklang['closedQuestionMarkDescr']; ?>"></i></th>
|
||||||
@ -119,36 +117,44 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
elseif ($row['Closable'] == 'conly') { $customersOnlySelected = 'selected'; }
|
elseif ($row['Closable'] == 'conly') { $customersOnlySelected = 'selected'; }
|
||||||
elseif ($row['Closable'] == 'sonly') { $staffOnlySelected = 'selected'; }
|
elseif ($row['Closable'] == 'sonly') { $staffOnlySelected = 'selected'; }
|
||||||
else { $noSelected = 'selected'; }
|
else { $noSelected = 'selected'; }
|
||||||
|
?>
|
||||||
echo '<tr id="s'.$row['ID'].'_row">';
|
<tr id="s<?php echo $row['ID']; ?>_row">
|
||||||
echo '<td>'.$hesklang[$row['Key']].'</td>'; //Name
|
<td>
|
||||||
echo '<td><input type="text" class="form-control" name="s'.$row['ID'].'_key" value="'.$row['Key'].'" placeholder="'.htmlspecialchars($hesklang['language_key']).'"></td>'; // Language File Key
|
<span style="color: <?php echo $row['TextColor']; ?>; font-weight: bold">
|
||||||
echo '<td><input type="text" class="form-control" name="s'.$row['ID'].'_textColor" value="'.$row['TextColor'].'" placeholder="'.htmlspecialchars($hesklang['textColor']).'"></td>'; // Text Color
|
<?php echo $hesklang[$row['Key']]; ?>
|
||||||
echo '<td>
|
</span>
|
||||||
<select class="form-control" name="s'.$row['ID'].'_closable">
|
<i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $hesklang['click_to_edit_name']; ?>"></i>
|
||||||
<option value="yes" '.$yesSelected.'>'.$hesklang['yes_title_case'].'</option>
|
</td>
|
||||||
<option value="conly" '.$customersOnlySelected.'>'.$hesklang['customers_only'].'</option>
|
<td><input type="text" class="form-control" name="s<?php echo $row['ID']; ?>_textColor"
|
||||||
<option value="sonly" '.$staffOnlySelected.'>'.$hesklang['staff_only'].'</option>
|
value="<?php echo $row['TextColor']; ?>"
|
||||||
<option value="no" '.$noSelected.'>'.$hesklang['no_title_case'].'</option>
|
placeholder="<?php echo htmlspecialchars($hesklang['textColor']); ?>"></td>
|
||||||
|
<td>
|
||||||
|
<select class="form-control" name="s<?php echo $row['ID']; ?>_closable">
|
||||||
|
<option value="yes" <?php echo $yesSelected; ?>><?php echo $hesklang['yes_title_case']; ?></option>
|
||||||
|
<option value="conly" <?php echo $customersOnlySelected; ?>><?php echo $hesklang['customers_only']; ?></option>
|
||||||
|
<option value="sonly" <?php echo $staffOnlySelected; ?>><?php echo $hesklang['staff_only']; ?></option>
|
||||||
|
<option value="no" <?php echo $noSelected; ?>><?php echo $hesklang['no_title_case']; ?></option>
|
||||||
</select>
|
</select>
|
||||||
</td>';
|
</td>
|
||||||
echo '<td><input type="checkbox" name="s'.$row['ID'].'_isClosed" value="1" '.$checkedEcho.'></td>'; // Resolved Status?
|
<td>
|
||||||
echo '<td>';
|
<input type="checkbox" name="s<?php echo $row['ID']; ?>_isClosed" value="1" <?php echo $checkedEcho; ?>
|
||||||
if ($isDisabled)
|
</td>
|
||||||
{
|
<td>
|
||||||
echo '<i class="fa fa-ban" style="color: red; font-size: 1.2em; font-weight: bold" data-toggle="popover" data-placement="left" title="'.$hesklang['whyCantIDeleteThisStatus'].'" data-content="'.$hesklang['whyCantIDeleteThisStatusReason'].'"></i>';
|
<?php if ($isDisabled): ?>
|
||||||
} else
|
<i class="fa fa-ban" style="color: red; font-size: 1.2em; font-weight: bold"
|
||||||
{
|
data-toggle="popover" data-placement="left" title="<?php echo $hesklang['whyCantIDeleteThisStatus']; ?>"
|
||||||
echo '<input type="checkbox" onclick="toggleRow(\'s'.$row['ID'].'_row\')" name="s'.$row['ID'].'_delete" value="1">';
|
data-content="<?php echo $hesklang['whyCantIDeleteThisStatusReason']; ?>"></i>
|
||||||
}
|
<?php else: ?>
|
||||||
echo '</td>'; //Delete status?
|
<input type="checkbox" onclick="toggleRow('s<?php echo $row['ID']; ?>_row')" name="s<?php echo $row['ID']; ?>_delete" value="1">
|
||||||
echo '</tr>';
|
<?php endif; ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
//Print out an additional blank space for adding a status
|
//Print out an additional blank space for adding a status
|
||||||
echo '<tr class="info">';
|
echo '<tr class="info">';
|
||||||
echo '<td><b>'.$hesklang['addNew'].'</b></td>';
|
echo '<td><b>'.$hesklang['addNew'].'</b></td>';
|
||||||
echo '<td><input type="text" class="form-control" name="sN_key" value="" placeholder="'.htmlspecialchars($hesklang['language_key']).'"></td>'; // Language File Key
|
|
||||||
echo '<td><input type="text" class="form-control" name="sN_textColor" value="" placeholder="'.htmlspecialchars($hesklang['textColor']).'"></td>'; // Text Color
|
echo '<td><input type="text" class="form-control" name="sN_textColor" value="" placeholder="'.htmlspecialchars($hesklang['textColor']).'"></td>'; // Text Color
|
||||||
echo '<td>
|
echo '<td>
|
||||||
<select class="form-control" name="sN_closable">
|
<select class="form-control" name="sN_closable">
|
||||||
@ -159,14 +165,17 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</select>
|
</select>
|
||||||
</td>';
|
</td>';
|
||||||
echo '<td><input type="checkbox" name="sN_isClosed" value="1"></td>'; // Resolved Status?
|
echo '<td><input type="checkbox" name="sN_isClosed" value="1"></td>'; // Resolved Status?
|
||||||
echo '<td></td>'; //Empty placeholder where the delete row is.
|
echo '<td></td>'; // Placeholder where delete is
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<h6 style="font-weight: bold"><?php echo $hesklang['defaultStatusForAction']; ?></h6>
|
<div class="panel panel-default">
|
||||||
<div class="footerWithBorder blankSpace"></div>
|
<div class="panel-heading">
|
||||||
|
<h4><?php echo $hesklang['defaultStatusForAction']; ?></h4>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="newTicket" class="col-sm-6 col-xs-12 control-label"><?php echo $hesklang['isNewTicketMsg']; ?></label>
|
<label for="newTicket" class="col-sm-6 col-xs-12 control-label"><?php echo $hesklang['isNewTicketMsg']; ?></label>
|
||||||
<div class="col-sm-6 col-xs-12">
|
<div class="col-sm-6 col-xs-12">
|
||||||
@ -287,6 +296,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-sm-6 col-sm-offset-6">
|
<div class="col-sm-6 col-sm-offset-6">
|
||||||
<input type="hidden" name="action" value="save">
|
<input type="hidden" name="action" value="save">
|
||||||
<input type="submit" class="btn btn-default" value="<?php echo $hesklang['save_changes']; ?>">
|
<input type="submit" class="btn btn-default" value="<?php echo $hesklang['save_changes']; ?>">
|
||||||
|
@ -32,6 +32,7 @@ $hesklang['quick_help_sections_help'] = 'Check the checkbox to show the "Quick H
|
|||||||
$hesklang['create_ticket'] = 'Create ticket';
|
$hesklang['create_ticket'] = 'Create ticket';
|
||||||
$hesklang['view_ticket_form'] = 'View ticket form';
|
$hesklang['view_ticket_form'] = 'View ticket form';
|
||||||
$hesklang['knowledgebase'] = 'Knowledgebase section';
|
$hesklang['knowledgebase'] = 'Knowledgebase section';
|
||||||
|
$hesklang['click_to_edit_name'] = 'Click to edit name';
|
||||||
|
|
||||||
// ADDED OR MODIFIED IN Mods for HESK 2.3.0
|
// ADDED OR MODIFIED IN Mods for HESK 2.3.0
|
||||||
$hesklang['sm_icon'] = 'Icon';
|
$hesklang['sm_icon'] = 'Icon';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user