Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. @using Itransition.EMS.Web.Helpers
  2. @model Itransition.EMS.Application.Models.QualificationModels.QualificationRequestPreCreateModel
  3.  
  4. @{
  5. ViewBag.Title = "Создание запроса на изменение квалификации";
  6. ViewBag.BodyClass = "itransition-qm";
  7.  
  8. Layout = "../Shared/_Layout.cshtml";
  9. }
  10.  
  11. <div class="wrapper wrapper-content animated fadeInRight">
  12. <div class="new-request">
  13. <div class="ibox">
  14. <div class="ibox-title">
  15. <h5>@ViewBag.Title</h5>
  16. </div>
  17. <div class="ibox-content">
  18. @using (Html.BeginForm("PreCreate", "QualificationRequest", FormMethod.Post))
  19. {
  20. <div class="form-group m-b-lg">
  21. @Html.LabelFor(x => x.EmployeeId, new {@class = "control-label"})
  22. @Html.DropDownListFor(model => model.EmployeeId, Model.Employees.ToSelectListItems())
  23. @Html.ValidationMessageFor(model => model.EmployeeId, "", new {@class = "error"})
  24. </div>
  25.  
  26. <div class="form-group text-center">
  27. <button class="btn btn-primary" type="submit">Продолжить</button>
  28. </div>
  29. }
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34.  
  35.  
  36. @section scripts{
  37. <script>
  38. $(function () {
  39. $("#@Html.IdFor(x => x.EmployeeId)").ChosenDynamic(true, true);
  40. });
  41.  
  42. @if (Model.CanNotCreate)
  43. {
  44. <text>
  45. swal({
  46. title: "@Html.Raw(Model.ErrorTitle)",
  47. text: "@Html.Raw(Model.ErrorMessage)",
  48. type: "warning",
  49. confirmButtonColor: "#1C84C6",
  50. confirmButtonText: "ОК"
  51. });
  52. </text>
  53. }
  54. </script>
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement