Jul 17 - Fill the gaps between Single-tenant mode and Multi-tenant mode - MT4
This commit is contained in:
@@ -39,6 +39,29 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 mb-3">
|
||||
<label class="form-label">Mode</label>
|
||||
<select name="mode" class="form-select">
|
||||
<option value="auto" {{ 'selected' if not schedule or schedule.mode != 'plan' }}>
|
||||
Auto — create the inspection automatically each period</option>
|
||||
<option value="plan" {{ 'selected' if schedule and schedule.mode == 'plan' }}>
|
||||
Plan — inspector presses Start (with due/overdue reminders)</option>
|
||||
</select>
|
||||
<div class="form-text">
|
||||
Auto drops an in-progress inspection into the inspector's queue on
|
||||
schedule. Plan assigns a due date and reminds them the day before, on
|
||||
the day, and alerts managers once it's overdue.
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 mb-3">
|
||||
<label class="form-label">Notes for the inspector <span class="text-muted small">(optional)</span></label>
|
||||
<textarea name="notes" class="form-control" rows="2"
|
||||
placeholder="Anything the inspector should know before starting">{{ schedule.notes if schedule and schedule.notes else '' }}</textarea>
|
||||
<div class="form-text">Copied onto the inspection when it starts.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 mb-3">
|
||||
<label class="form-label">Facility</label>
|
||||
@@ -80,8 +103,12 @@
|
||||
<label class="form-check-label" for="activeSwitch">Active</label>
|
||||
</div>
|
||||
<p class="text-muted small">
|
||||
Saving recomputes the next run from now. Next run:
|
||||
Saving recomputes the next {{ 'due date' if schedule.mode == 'plan' else 'run' }}
|
||||
from now, and resets this occurrence's reminders. Currently:
|
||||
{{ schedule.next_run_at.strftime('%Y-%m-%d %H:%M') if schedule.next_run_at else '—' }}
|
||||
{% if schedule.last_completed_at %}
|
||||
· last completed {{ schedule.last_completed_at.strftime('%Y-%m-%d %H:%M') }}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user