e2f9e9ae4f
- Standardize modal dismiss/cancel buttons to btn-outline-secondary across 70+ views - Remove btn-sm from page-level Create and Back buttons (Index + Detail pages) - Fix Edit buttons on Details pages: btn-secondary -> btn-warning - Fix form Cancel/Back links: btn-secondary -> btn-outline-secondary - Add 10 CSS patches to site.css for mobile/tablet responsiveness: top-navbar overflow prevention, page-header flex-wrap at 575px, table action button min-height override, notification dropdown width cap, tablet content padding Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
107 lines
5.7 KiB
Plaintext
107 lines
5.7 KiB
Plaintext
@model PowderCoating.Application.DTOs.User.UpdateSuperAdminDto
|
|
@{
|
|
ViewData["Title"] = "Edit SuperAdmin";
|
|
}
|
|
|
|
<div class="container-fluid py-4">
|
|
<div class="row">
|
|
<div class="col-lg-8 mx-auto">
|
|
<div class="card shadow-sm">
|
|
<div class="card-header bg-primary text-white">
|
|
<h4 class="mb-0">
|
|
<i class="bi bi-pencil"></i> Edit SuperAdmin
|
|
</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<form asp-action="Edit" method="post">
|
|
<input type="hidden" asp-for="Id" />
|
|
<partial name="_ValidationSummary" />
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-md-6">
|
|
<label asp-for="FirstName" class="form-label">First Name <span class="text-danger">*</span></label>
|
|
<input asp-for="FirstName" class="form-control" required />
|
|
<span asp-validation-for="FirstName" class="text-danger"></span>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label asp-for="LastName" class="form-label">Last Name <span class="text-danger">*</span></label>
|
|
<input asp-for="LastName" class="form-control" required />
|
|
<span asp-validation-for="LastName" class="text-danger"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-md-6">
|
|
<label asp-for="Email" class="form-label">Email <span class="text-danger">*</span></label>
|
|
<input asp-for="Email" type="email" class="form-control" readonly />
|
|
<small class="form-text text-muted">Email cannot be changed</small>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label asp-for="EmployeeNumber" class="form-label">Employee Number</label>
|
|
<input asp-for="EmployeeNumber" class="form-control" />
|
|
<span asp-validation-for="EmployeeNumber" class="text-danger"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-md-6">
|
|
<label asp-for="Department" class="form-label">Department</label>
|
|
<input asp-for="Department" class="form-control" />
|
|
<span asp-validation-for="Department" class="text-danger"></span>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label asp-for="Position" class="form-label">Position</label>
|
|
<input asp-for="Position" class="form-control" />
|
|
<span asp-validation-for="Position" class="text-danger"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-md-6">
|
|
<label asp-for="Phone" class="form-label">Phone</label>
|
|
<input asp-for="Phone" type="tel" class="form-control" />
|
|
<span asp-validation-for="Phone" class="text-danger"></span>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label asp-for="HireDate" class="form-label">Hire Date <span class="text-danger">*</span></label>
|
|
<input asp-for="HireDate" type="date" class="form-control" required />
|
|
<span asp-validation-for="HireDate" class="text-danger"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-md-6">
|
|
<label asp-for="TerminationDate" class="form-label">Termination Date</label>
|
|
<input asp-for="TerminationDate" type="date" class="form-control" />
|
|
<span asp-validation-for="TerminationDate" class="text-danger"></span>
|
|
<small class="form-text text-muted">Leave blank if currently employed</small>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-check mt-4 pt-2">
|
|
<input asp-for="IsActive" class="form-check-input" type="checkbox" />
|
|
<label asp-for="IsActive" class="form-check-label">
|
|
Account is Active
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between mt-4">
|
|
<a asp-action="Index" asp-route-filter="superadmins" class="btn btn-outline-secondary">
|
|
<i class="bi bi-arrow-left"></i> Cancel
|
|
</a>
|
|
<button type="submit" class="btn btn-primary">
|
|
<i class="bi bi-check-circle"></i> Save Changes
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|