Files
Backend-Api/ServiceHost/Areas/AdminNew/Pages/Company/RollCall/ModalChangeName.cshtml

92 lines
2.8 KiB
Plaintext

@model CompanyManagment.App.Contracts.RollCallEmployee.RollCallEmployeeViewModel
@{
string clientVersion = _0_Framework.Application.Version.StyleVersion;
<link href="~/AssetsClient/css/select2.css?ver=@clientVersion" rel="stylesheet" />
<style>
.errored {
animation: shake 300ms;
color: #eb3434 !important;
background-color: #fef2f2 !important;
border: 1px solid #eb3434 !important;
}
.textLFontColor,
.form-control {
color: #797979;
font-size: 12px;
font-weight: 500;
}
.textLFontColor span {
font-size: 16px;
font-weight: 600;
}
.btnCreateNew {
font-size: 14px;
font-weight: 500;
background-color: #84CC16;
color: #FFFFFF;
border-radius: 8px;
padding: 10px 70px;
}
.btnCreateNew:hover {
background-color: #5f9213;
}
</style>
}
<form role="form" method="post" name="create-form" id="create-form" autocomplete="off">
<div class="modal-content">
<div class="modal-header pb-0 d-flex align-items-center justify-content-center text-center">
<button type="button" class="btn-close position-absolute text-start" data-bs-dismiss="modal" aria-label="Close"></button>
<div>
<p class="m-0 pdHeaderTitle1">تغییر نام پرسنل</p>
</div>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<input type="hidden" name="rollCallEmployeeId" id="rollCallEmployeeId" value="@Model.Id" />
<div class="col-12 my-1">
<input class="form-control" name="fName" id="EmployeeFName" value="@Model.EmployeeFName" placeholder="نام" />
</div>
<div class="col-12 my-1">
<input class="form-control" name="lName" id="EmployeeLName" value="@Model.EmployeeLName" placeholder="نام خانوادگی" />
</div>
</div>
</div>
</div>
<div class="modal-footer d-block">
<div class="container m-0">
<div class="row">
<div class="col-6 text-end">
<button type="button" class="btn-cancel2 w-100 d-flex align-items-center justify-content-center" data-bs-dismiss="modal" aria-label="Close">انصراف</button>
</div>
<div class="col-6 text-start">
<button type="button" class="btnCreateNew w-100 d-flex align-items-center justify-content-center position-relative" id="createData">
<span>تغییر</span>
<div class="spinner-loading loading" style="display: none;">
<span class="spinner-border spinner-border-sm loading text-white" role="status" aria-hidden="true"></span>
</div>
</button>
</div>
</div>
</div>
</div>
</div>
</form>
<script src="~/assetsclient/js/site.js"></script>
<script>
var antiForgeryToken = $(`@Html.AntiForgeryToken()`).val();
var saveChangeNameAjax = `@Url.Page("./EmployeeUploadPicture", "ChangeName")`;
var employeeId = Number(@Model.EmployeeId);
</script>
<script src="~/AssetsAdminNew/RollCall/js/ModalChangeName.js?ver=963"></script>