Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 KB | None | 0 0
  1. @model egot.Models.Referaty
  2.  
  3. <!-- Biblioteki umozliwiajace walidacje formularza po stronie klienta-->
  4. <script src="~/Scripts/jquery-1.10.2.js"></script>
  5. <script src="~/Scripts/jquery.validate.js"></script>
  6. <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
  7.  
  8. <!--Style dla błędów-->
  9. <style>
  10. .field-validation-error {
  11. color: red;
  12. font-weight: bold;
  13. }
  14.  
  15. .input-validation-error {
  16. color: pink;
  17. border: 1px solid red;
  18. }
  19.  
  20. body {
  21. background-image: url(http://www.nasa.gov/sites/default/files/thumbnails/image/twaharpiesrange_2018_lrg.jpeg);
  22. background-repeat: no-repeat;
  23. background-size: cover;
  24. }
  25.  
  26. .navbar {
  27. margin-bottom: 23px;
  28. }
  29.  
  30. #login {
  31. color: black;
  32. }
  33.  
  34. #yo {
  35. color: black;
  36. }
  37.  
  38. #cosik {
  39. background-color: #343434;
  40. outline-width: 1px;
  41. outline-color: black;
  42. outline-style: solid;
  43. }
  44. </style>
  45.  
  46. @{
  47. ViewBag.Title = "Create";
  48. Layout = "~/Views/Shared/_Layout.cshtml";
  49. }
  50.  
  51.  
  52.  
  53.  
  54. @using (Html.BeginForm())
  55. {
  56. @Html.AntiForgeryToken()
  57.  
  58. <div class="container">
  59. <div class="row">
  60.  
  61. <div class="col-lg-4"></div>
  62.  
  63. <div class="col-lg-4">
  64. <div class="img thumbnail">
  65. <div class="caption post-content">
  66. <h3 style="padding-left: 24px;">Załóż nowe konto referatu!</h3>
  67. <div class="card">
  68. <div class="card-body">
  69.  
  70. <form>
  71.  
  72. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  73.  
  74. <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
  75. @Html.LabelFor(model => model.login, htmlAttributes: new { @class = "control-label" })
  76.  
  77. @Html.EditorFor(model => model.login, new { htmlAttributes = new { @class = "form-control" } })
  78. @Html.ValidationMessageFor(model => model.login, "", new { @class = "text-danger" })
  79.  
  80. </div>
  81.  
  82. <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
  83. @Html.LabelFor(model => model.haslo, htmlAttributes: new { @class = "control-label" })
  84.  
  85. @Html.EditorFor(model => model.haslo, new { htmlAttributes = new { @class = "form-control" } })
  86. @Html.ValidationMessageFor(model => model.haslo, "", new { @class = "text-danger" })
  87.  
  88. </div>
  89.  
  90. <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
  91. @Html.LabelFor(model => model.nazwa, htmlAttributes: new { @class = "control-label" })
  92.  
  93. @Html.EditorFor(model => model.nazwa, new { htmlAttributes = new { @class = "form-control" } })
  94. @Html.ValidationMessageFor(model => model.nazwa, "", new { @class = "text-danger" })
  95.  
  96. </div>
  97.  
  98. <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
  99. @Html.LabelFor(model => model.miejscowosc, htmlAttributes: new { @class = "control-label" })
  100.  
  101. @Html.EditorFor(model => model.miejscowosc, new { htmlAttributes = new { @class = "form-control" } })
  102. @Html.ValidationMessageFor(model => model.miejscowosc, "", new { @class = "text-danger" })
  103.  
  104. </div>
  105.  
  106. <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
  107. @Html.LabelFor(model => model.adres, htmlAttributes: new { @class = "control-label" })
  108.  
  109. @Html.EditorFor(model => model.adres, new { htmlAttributes = new { @class = "form-control" } })
  110. @Html.ValidationMessageFor(model => model.adres, "", new { @class = "text-danger" })
  111.  
  112. </div>
  113.  
  114. @*Ukrycie checkboxa terenowy w celu zapobiegnięciu dodania kolejnego konta Centralnego Referatu (jeśli referat nie jest terenowy, jest centralny)*@
  115. @Html.CheckBoxFor(model => model.terenowy, htmlAttributes: new { @checked = "true", @hidden = "true" })
  116.  
  117. <br />
  118.  
  119. <div class="text-center mt-4">
  120. <input type="submit" value="Zarejestruj" class="btn btn-default" />
  121. </div>
  122.  
  123. <br />
  124.  
  125. </form>
  126.  
  127. <div>
  128. @Html.ActionLink("Powrót do listy", "Index")
  129. </div>
  130.  
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135.  
  136.  
  137. </div>
  138.  
  139.  
  140. </div>
  141. </div>
  142. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement