04/25 modified the UI, projects -> contracts, button names

This commit is contained in:
2026-04-25 11:21:27 -04:00
parent 9d9880e20b
commit df9f245c57
15 changed files with 46 additions and 46 deletions
+5 -5
View File
@@ -33,15 +33,15 @@
<div class="col-md-4">
<strong>Optional columns</strong>
<ul class="mb-0 mt-1 ps-3">
<li><code>project_name</code> — exact project name</li>
<li><code>facility_name</code> — exact facility name within project (leave blank for all)</li>
<li><code>project_name</code> — exact contract name</li>
<li><code>facility_name</code> — exact facility name within contract (leave blank for all)</li>
</ul>
</div>
<div class="col-md-4">
<strong>Tips</strong>
<ul class="mb-0 mt-1 ps-3">
<li>Repeat a username on multiple rows to assign them to multiple projects</li>
<li>Leave <code>facility_name</code> blank to grant access to all facilities in the project</li>
<li>Repeat a username on multiple rows to assign them to multiple contracts</li>
<li>Leave <code>facility_name</code> blank to grant access to all facilities in the contract</li>
<li>Existing usernames/emails will be flagged as errors before anything is saved</li>
</ul>
</div>
@@ -96,7 +96,7 @@
<th width="50">Row</th>
<th>Username</th>
<th>Email</th>
<th>Project</th>
<th>Contract</th>
<th>Facility Scope</th>
<th>Status</th>
</tr>
+1 -1
View File
@@ -28,7 +28,7 @@
<th>Full Name</th>
<th>Email</th>
<th>Status</th>
<th>Assigned Projects</th>
<th>Assigned Contracts</th>
<th>Accessible Facilities</th>
<th>Created</th>
<th width="160"></th>
+7 -7
View File
@@ -123,14 +123,14 @@
{# ── Current assignments table ── #}
<div class="card shadow-sm mb-4">
<div class="card-header bg-light fw-semibold d-flex justify-content-between align-items-center">
<span><i class="bi bi-diagram-3 me-1"></i> Project Assignments</span>
<span><i class="bi bi-diagram-3 me-1"></i> Contract Assignments</span>
</div>
{% if assignments %}
<div class="card-body p-0">
<table class="table table-hover table-sm mb-0">
<thead class="table-light">
<tr>
<th>Project</th>
<th>Contract</th>
<th>Facility Scope</th>
<th>Assigned</th>
<th width="60"></th>
@@ -186,10 +186,10 @@
<div class="row g-3 align-items-end">
<div class="col-md-5">
<label class="form-label small fw-semibold">Project</label>
<label class="form-label small fw-semibold">Contract</label>
<select name="project_id" id="proj-select" class="form-select form-select-sm"
required>
<option value="">— Select project —</option>
<option value="">— Select contract —</option>
{% for p in projects %}
<option value="{{ p.id }}">{{ p.name }}</option>
{% endfor %}
@@ -198,10 +198,10 @@
<div class="col-md-5">
<label class="form-label small fw-semibold">Facility Scope</label>
<select name="facility_id" id="fac-select" class="form-select form-select-sm">
<option value="">— All facilities in project —</option>
<option value="">— All facilities in contract —</option>
</select>
<div class="form-text" style="font-size:.72rem;">
Leave blank to grant access to all facilities in the project.
Leave blank to grant access to all facilities in the contract.
</div>
</div>
<div class="col-md-2">
@@ -228,7 +228,7 @@
projSelect.addEventListener('change', function () {
const projectId = this.value;
facSelect.innerHTML = '<option value="">— All facilities in project —</option>';
facSelect.innerHTML = '<option value="">— All facilities in contract —</option>';
if (!projectId) return;