feat: Add job locking UI to Edit and Index pages
Locked jobs show a warning banner with unlock button on the Edit page. All form fields, part/stock add/edit/delete buttons are disabled via fieldset when locked. Jobs Index shows a lock icon badge next to locked job numbers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,13 @@ else
|
||||
@foreach (var job in pagedJobs)
|
||||
{
|
||||
<tr>
|
||||
<td><a href="jobs/@job.Id">@job.JobNumber</a></td>
|
||||
<td>
|
||||
<a href="jobs/@job.Id">@job.JobNumber</a>
|
||||
@if (job.IsLocked)
|
||||
{
|
||||
<i class="bi bi-lock-fill text-warning ms-1" title="Locked — materials ordered"></i>
|
||||
}
|
||||
</td>
|
||||
<td>@(job.Name ?? "-")</td>
|
||||
<td>@(job.Customer ?? "-")</td>
|
||||
<td>@(job.CuttingTool?.Name ?? "-")</td>
|
||||
|
||||
Reference in New Issue
Block a user