X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=Projects%2FViews%2FProjects%2FEdit.cshtml;h=b74df62284063334f04a4dc58b5b105aa5a7bcff;hb=ebce2754ea0c114789c3f5ff6494ba390f2492ab;hp=3ed475bc8a2139db06c0ad39b84aae4facd2fa2e;hpb=5e0fe0cb10f848f46dd875350ca51198e28e0c74;p=wsti_pai.git diff --git a/Projects/Views/Projects/Edit.cshtml b/Projects/Views/Projects/Edit.cshtml index 3ed475b..b74df62 100644 --- a/Projects/Views/Projects/Edit.cshtml +++ b/Projects/Views/Projects/Edit.cshtml @@ -1,10 +1,10 @@ @model Projects.Models.Project @{ - ViewBag.Title = "Edit"; + ViewBag.Title = "Edycja projektu"; } -

Edit

+

@ViewBag.Title

@using (Html.BeginForm()) @@ -12,10 +12,23 @@ @Html.AntiForgeryToken()
-

Project

+

Projekt


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.id) +
+ +
+

@Html.DisplayFor(model => model.created_at)

+ @Html.EditorFor(model => model.created_at, new { htmlAttributes = new { @class = "form-control", @type = "hidden" } }) +
+
+
+ +
+ +
+
@Html.LabelFor(model => model.user_id, "user_id", htmlAttributes: new { @class = "control-label col-md-2" }) @@ -41,32 +54,16 @@
-
- @Html.LabelFor(model => model.created_at, htmlAttributes: new { @class = "control-label col-md-2" }) -
- @Html.EditorFor(model => model.created_at, new { htmlAttributes = new { @class = "form-control" } }) - @Html.ValidationMessageFor(model => model.created_at, "", new { @class = "text-danger" }) -
-
- -
- @Html.LabelFor(model => model.updated_at, htmlAttributes: new { @class = "control-label col-md-2" }) -
- @Html.EditorFor(model => model.updated_at, new { htmlAttributes = new { @class = "form-control" } }) - @Html.ValidationMessageFor(model => model.updated_at, "", new { @class = "text-danger" }) -
-
-
- +
}
- @Html.ActionLink("Back to List", "Index") + @Html.ActionLink("Powrót do listy", "Index")
@section Scripts {