Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using Itransition.EMS.Web.Helpers
- @model Itransition.EMS.Application.Models.QualificationModels.QualificationRequestPreCreateModel
- @{
- ViewBag.Title = "Создание запроса на изменение квалификации";
- ViewBag.BodyClass = "itransition-qm";
- Layout = "../Shared/_Layout.cshtml";
- }
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="new-request">
- <div class="ibox">
- <div class="ibox-title">
- <h5>@ViewBag.Title</h5>
- </div>
- <div class="ibox-content">
- @using (Html.BeginForm("PreCreate", "QualificationRequest", FormMethod.Post))
- {
- <div class="form-group m-b-lg">
- @Html.LabelFor(x => x.EmployeeId, new {@class = "control-label"})
- @Html.DropDownListFor(model => model.EmployeeId, Model.Employees.ToSelectListItems())
- @Html.ValidationMessageFor(model => model.EmployeeId, "", new {@class = "error"})
- </div>
- <div class="form-group text-center">
- <button class="btn btn-primary" type="submit">Продолжить</button>
- </div>
- }
- </div>
- </div>
- </div>
- </div>
- @section scripts{
- <script>
- $(function () {
- $("#@Html.IdFor(x => x.EmployeeId)").ChosenDynamic(true, true);
- });
- @if (Model.CanNotCreate)
- {
- <text>
- swal({
- title: "@Html.Raw(Model.ErrorTitle)",
- text: "@Html.Raw(Model.ErrorMessage)",
- type: "warning",
- confirmButtonColor: "#1C84C6",
- confirmButtonText: "ОК"
- });
- </text>
- }
- </script>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement