@model Projects.Models.ProjectTask @{ ViewBag.Title = "Edycja zadania"; }

@ViewBag.Title

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

Zadanie


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.id)
@Html.LabelFor(model => model.project_id, "project_id", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("project_id", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.project_id, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
@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.LabelFor(model => model.task_status_id, "task_status_id", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("task_status_id", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.task_status_id, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.user_id, "user_id", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("user_id", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.user_id, "", new { @class = "text-danger" })
}
@Html.ActionLink("Powrót do listy", "Index")
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }