Initial commit
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
@model PowderCoating.Application.DTOs.User.CreateSuperAdminDto
|
||||
@{
|
||||
ViewData["Title"] = "Create 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-shield-check"></i> Create New SuperAdmin
|
||||
</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="alert alert-info">
|
||||
<i class="bi bi-info-circle"></i>
|
||||
<strong>Important:</strong> SuperAdmins have full platform access across all companies. Use this feature carefully.
|
||||
</div>
|
||||
|
||||
<form asp-action="CreateSuperAdmin" method="post">
|
||||
<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" placeholder="Enter first name" 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" placeholder="Enter last name" 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" placeholder="admin@example.com" required />
|
||||
<span asp-validation-for="Email" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label asp-for="EmployeeNumber" class="form-label">Employee Number</label>
|
||||
<input asp-for="EmployeeNumber" class="form-control" placeholder="SA-002" />
|
||||
<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" placeholder="Platform" />
|
||||
<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" placeholder="Super Administrator" />
|
||||
<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" placeholder="(555) 123-4567" />
|
||||
<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>
|
||||
|
||||
<hr class="my-4" />
|
||||
|
||||
<h5 class="mb-3">
|
||||
<i class="bi bi-key"></i> Password Setup
|
||||
</h5>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-6">
|
||||
<label asp-for="Password" class="form-label">Password <span class="text-danger">*</span></label>
|
||||
<input asp-for="Password" type="password" class="form-control" placeholder="Enter strong password" required />
|
||||
<span asp-validation-for="Password" class="text-danger"></span>
|
||||
<small class="form-text text-muted">
|
||||
Minimum 8 characters, must include uppercase, lowercase, number, and special character
|
||||
</small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label asp-for="ConfirmPassword" class="form-label">Confirm Password <span class="text-danger">*</span></label>
|
||||
<input asp-for="ConfirmPassword" type="password" class="form-control" placeholder="Re-enter password" required />
|
||||
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-between mt-4">
|
||||
<a asp-action="Index" class="btn btn-secondary">
|
||||
<i class="bi bi-arrow-left"></i> Cancel
|
||||
</a>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="bi bi-shield-check"></i> Create SuperAdmin
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
<partial name="_ValidationScriptsPartial" />
|
||||
}
|
||||
Reference in New Issue
Block a user