mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 15:17:17 +00:00
Add Urgent Priority, move Per Client SLA Settings to notes tab in client add / edit modal remove unnessesary sla admin setting for client overide
This commit is contained in:
@@ -193,34 +193,6 @@ ob_start();
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// Ticket SLA assignments - only offered when active SLAs exist
|
||||
$sla_options = [];
|
||||
$sla_options_sql = mysqli_query($mysqli, "SELECT sla_id, sla_name FROM slas WHERE sla_archived_at IS NULL ORDER BY sla_name ASC");
|
||||
while ($sla_option_row = mysqli_fetch_assoc($sla_options_sql)) {
|
||||
$sla_options[intval($sla_option_row['sla_id'])] = $sla_option_row['sla_name'];
|
||||
}
|
||||
if ($config_module_enable_ticketing && !empty($sla_options)) { ?>
|
||||
<div class="form-group">
|
||||
<label>Ticket SLAs</label>
|
||||
<div class="form-row">
|
||||
<?php foreach (['Low', 'Medium', 'High'] as $sla_priority) { $sla_current = $client_sla_assignments[$sla_priority] ?? 'default'; ?>
|
||||
<div class="col-4">
|
||||
<small class="text-secondary"><?= $sla_priority ?></small>
|
||||
<select class="form-control" name="client_sla_<?= strtolower($sla_priority) ?>">
|
||||
<option value="default" <?php if ($sla_current === 'default') { echo "selected"; } ?>>Default</option>
|
||||
<option value="0" <?php if ($sla_current === 0) { echo "selected"; } ?>>None</option>
|
||||
<?php foreach ($sla_options as $sla_option_id => $sla_option_name) { ?>
|
||||
<option value="<?= $sla_option_id ?>" <?php if ($sla_current === $sla_option_id) { echo "selected"; } ?>><?= escapeHtml($sla_option_name) ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<small class="text-muted">Default follows the global SLA assignment for each priority.</small>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ($config_module_enable_accounting) { ?>
|
||||
@@ -269,6 +241,7 @@ ob_start();
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -279,6 +252,34 @@ ob_start();
|
||||
<textarea class="form-control" rows="10" placeholder="Enter some notes" name="notes"><?= $client_notes ?></textarea>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// Ticket SLA assignments - only offered when active SLAs exist
|
||||
$sla_options = [];
|
||||
$sla_options_sql = mysqli_query($mysqli, "SELECT sla_id, sla_name FROM slas WHERE sla_archived_at IS NULL ORDER BY sla_name ASC");
|
||||
while ($sla_option_row = mysqli_fetch_assoc($sla_options_sql)) {
|
||||
$sla_options[intval($sla_option_row['sla_id'])] = $sla_option_row['sla_name'];
|
||||
}
|
||||
if ($config_module_enable_ticketing && !empty($sla_options)) { ?>
|
||||
<div class="form-group">
|
||||
<label>Ticket SLAs</label>
|
||||
<div class="form-row">
|
||||
<?php foreach (['Low', 'Medium', 'High', 'Urgent'] as $sla_priority) { $sla_current = $client_sla_assignments[$sla_priority] ?? 'default'; ?>
|
||||
<div class="col-3">
|
||||
<small class="text-secondary"><?= $sla_priority ?></small>
|
||||
<select class="form-control" name="client_sla_<?= strtolower($sla_priority) ?>">
|
||||
<option value="default" <?php if ($sla_current === 'default') { echo "selected"; } ?>>Default</option>
|
||||
<option value="0" <?php if ($sla_current === 0) { echo "selected"; } ?>>None</option>
|
||||
<?php foreach ($sla_options as $sla_option_id => $sla_option_name) { ?>
|
||||
<option value="<?= $sla_option_id ?>" <?php if ($sla_current === $sla_option_id) { echo "selected"; } ?>><?= escapeHtml($sla_option_name) ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<small class="text-muted">Default follows the global SLA assignment for each priority.</small>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user