1 @model Projects.Models.ProjectTask
4 ViewBag.Title = "Edycja zadania";
7 <h2>@ViewBag.Title</h2>
10 @using (Html.BeginForm())
12 @Html.AntiForgeryToken()
14 <div class="form-horizontal">
17 @Html.ValidationSummary(true, "", new { @class = "text-danger" })
18 @Html.HiddenFor(model => model.id)
20 <div class="form-group">
21 @Html.LabelFor(model => model.project_id, "project_id", htmlAttributes: new { @class = "control-label col-md-2" })
22 <div class="col-md-10">
23 @Html.DropDownList("project_id", null, htmlAttributes: new { @class = "form-control" })
24 @Html.ValidationMessageFor(model => model.project_id, "", new { @class = "text-danger" })
28 <div class="form-group">
29 @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
30 <div class="col-md-10">
31 @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
32 @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
36 <div class="form-group">
37 @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
38 <div class="col-md-10">
39 @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
40 @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
44 <div class="form-group">
45 @Html.LabelFor(model => model.created_at, htmlAttributes: new { @class = "control-label col-md-2" })
46 <div class="col-md-10">
47 @Html.EditorFor(model => model.created_at, new { htmlAttributes = new { @class = "form-control" } })
48 @Html.ValidationMessageFor(model => model.created_at, "", new { @class = "text-danger" })
52 <div class="form-group">
53 @Html.LabelFor(model => model.updated_at, htmlAttributes: new { @class = "control-label col-md-2" })
54 <div class="col-md-10">
55 @Html.EditorFor(model => model.updated_at, new { htmlAttributes = new { @class = "form-control" } })
56 @Html.ValidationMessageFor(model => model.updated_at, "", new { @class = "text-danger" })
60 <div class="form-group">
61 @Html.LabelFor(model => model.task_status_id, "task_status_id", htmlAttributes: new { @class = "control-label col-md-2" })
62 <div class="col-md-10">
63 @Html.DropDownList("task_status_id", null, htmlAttributes: new { @class = "form-control" })
64 @Html.ValidationMessageFor(model => model.task_status_id, "", new { @class = "text-danger" })
68 <div class="form-group">
69 @Html.LabelFor(model => model.user_id, "user_id", htmlAttributes: new { @class = "control-label col-md-2" })
70 <div class="col-md-10">
71 @Html.DropDownList("user_id", null, htmlAttributes: new { @class = "form-control" })
72 @Html.ValidationMessageFor(model => model.user_id, "", new { @class = "text-danger" })
76 <div class="form-group">
77 <div class="col-md-offset-2 col-md-10">
78 <input type="submit" value="Zapisz" class="btn btn-default" />
85 @Html.ActionLink("Powrót do listy", "Index")
89 @Scripts.Render("~/bundles/jqueryval")