Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model egot.Models.Referaty
- <!-- Biblioteki umozliwiajace walidacje formularza po stronie klienta-->
- <script src="~/Scripts/jquery-1.10.2.js"></script>
- <script src="~/Scripts/jquery.validate.js"></script>
- <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
- <!--Style dla błędów-->
- <style>
- .field-validation-error {
- color: red;
- font-weight: bold;
- }
- .input-validation-error {
- color: pink;
- border: 1px solid red;
- }
- body {
- background-image: url(http://www.nasa.gov/sites/default/files/thumbnails/image/twaharpiesrange_2018_lrg.jpeg);
- background-repeat: no-repeat;
- background-size: cover;
- }
- .navbar {
- margin-bottom: 23px;
- }
- #login {
- color: black;
- }
- #yo {
- color: black;
- }
- #cosik {
- background-color: #343434;
- outline-width: 1px;
- outline-color: black;
- outline-style: solid;
- }
- </style>
- @{
- ViewBag.Title = "Create";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
- <div class="container">
- <div class="row">
- <div class="col-lg-4"></div>
- <div class="col-lg-4">
- <div class="img thumbnail">
- <div class="caption post-content">
- <h3 style="padding-left: 24px;">Załóż nowe konto referatu!</h3>
- <div class="card">
- <div class="card-body">
- <form>
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
- @Html.LabelFor(model => model.login, htmlAttributes: new { @class = "control-label" })
- @Html.EditorFor(model => model.login, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.login, "", new { @class = "text-danger" })
- </div>
- <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
- @Html.LabelFor(model => model.haslo, htmlAttributes: new { @class = "control-label" })
- @Html.EditorFor(model => model.haslo, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.haslo, "", new { @class = "text-danger" })
- </div>
- <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
- @Html.LabelFor(model => model.nazwa, htmlAttributes: new { @class = "control-label" })
- @Html.EditorFor(model => model.nazwa, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.nazwa, "", new { @class = "text-danger" })
- </div>
- <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
- @Html.LabelFor(model => model.miejscowosc, htmlAttributes: new { @class = "control-label" })
- @Html.EditorFor(model => model.miejscowosc, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.miejscowosc, "", new { @class = "text-danger" })
- </div>
- <div class="md-form" style="padding-top: 10px; padding-left: 24px;">
- @Html.LabelFor(model => model.adres, htmlAttributes: new { @class = "control-label" })
- @Html.EditorFor(model => model.adres, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.adres, "", new { @class = "text-danger" })
- </div>
- @*Ukrycie checkboxa terenowy w celu zapobiegnięciu dodania kolejnego konta Centralnego Referatu (jeśli referat nie jest terenowy, jest centralny)*@
- @Html.CheckBoxFor(model => model.terenowy, htmlAttributes: new { @checked = "true", @hidden = "true" })
- <br />
- <div class="text-center mt-4">
- <input type="submit" value="Zarejestruj" class="btn btn-default" />
- </div>
- <br />
- </form>
- <div>
- @Html.ActionLink("Powrót do listy", "Index")
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement