Jul 9 - Update the 'Handled by' more clear and understandable
This commit is contained in:
@@ -76,11 +76,11 @@
|
||||
<dt class="col-sm-3">Handled By</dt>
|
||||
<dd class="col-sm-9">
|
||||
{% if issue.handler_type == 'facility' %}
|
||||
<span class="badge bg-info text-dark"><i class="bi bi-building me-1"></i>Facility Staff</span>
|
||||
<span class="badge bg-info text-dark" title="The facility's own on-site staff handle it."><i class="bi bi-building me-1"></i>Facility Staff</span>
|
||||
{% elif issue.handler_type == 'vendor' %}
|
||||
<span class="badge bg-warning text-dark"><i class="bi bi-person-gear me-1"></i>External Vendor</span>
|
||||
<span class="badge bg-warning text-dark" title="An outside contractor handles it."><i class="bi bi-person-gear me-1"></i>External Vendor</span>
|
||||
{% else %}
|
||||
<span class="badge bg-primary"><i class="bi bi-people me-1"></i>Our Staff</span>
|
||||
<span class="badge bg-primary" title="Our janitorial crew handles it."><i class="bi bi-people me-1"></i>Janitorial Staff</span>
|
||||
{% endif %}
|
||||
</dd>
|
||||
|
||||
@@ -373,6 +373,7 @@
|
||||
<div class="mb-3">
|
||||
{{ form.handler_type.label(class="form-label fw-semibold") }}
|
||||
{{ form.handler_type(class="form-select", id="handler_type_select") }}
|
||||
<div class="form-text" id="handler_desc"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@@ -549,6 +550,11 @@
|
||||
// ── "Handled By" — show the relevant sub-block (facility vs vendor) and
|
||||
// relabel the assignee as a follow-up owner for facility/vendor. ──
|
||||
var handlerSelect = document.getElementById('handler_type_select');
|
||||
var HANDLER_DESC = {
|
||||
'internal': 'Our janitorial crew handles it.',
|
||||
'facility': "The facility's own on-site staff handle it.",
|
||||
'vendor': 'An outside contractor handles it.'
|
||||
};
|
||||
function syncHandlerUI() {
|
||||
if (!handlerSelect) { return; }
|
||||
var v = handlerSelect.value;
|
||||
@@ -557,6 +563,9 @@
|
||||
if (facBlock) { facBlock.style.display = (v === 'facility') ? '' : 'none'; }
|
||||
if (venBlock) { venBlock.style.display = (v === 'vendor') ? '' : 'none'; }
|
||||
|
||||
var desc = document.getElementById('handler_desc');
|
||||
if (desc) { desc.textContent = HANDLER_DESC[v] || ''; }
|
||||
|
||||
var label = document.getElementById('assigned_to_label');
|
||||
var help = document.getElementById('assigned_to_help');
|
||||
if (label) {
|
||||
|
||||
Reference in New Issue
Block a user