Aug 19 - Re-evaluation

This commit is contained in:
2026-08-19 16:26:32 -04:00
parent 7efc9bb572
commit a4a8d84801
4 changed files with 57 additions and 16 deletions
+8 -6
View File
@@ -116,10 +116,11 @@
{% endfor %}
</select>
<div class="form-text">
Only inspectors assigned to this contract — the person named here
has to be able to open the inspection. Managers are not listed: a
Inspectors assigned to this contract — the person named here has
to be able to open the inspection. Managers are never listed: a
manager who will do the work holds a contract assignment like
anyone else.
anyone else. If the contract has nobody assigned yet, every
inspector is offered so the schedule is not blocked.
</div>
</div>
@@ -338,10 +339,11 @@
.then(function (r) { return r.json(); })
.then(function (data) {
if (!data.length) {
// Not an error state to hide: the contract has nobody assigned yet,
// and saving will fail until someone is. Say so here.
// Only reachable for a Customer Director: our own staff fall back to
// the full inspector pool server-side. Say what is wrong rather than
// leaving an empty dropdown.
inspectorSel.innerHTML =
'<option value="">— No inspectors assigned to this contract —</option>';
'<option value="">— No inspectors on this contract —</option>';
inspectorSel.disabled = false;
return;
}