Translation and fix for editing project task
[wsti_pai.git] / Projects / Views / Projects / Edit.cshtml
1 @model Projects.Models.Project
2
3 @{
4     ViewBag.Title = "Edycja projektu";
5 }
6
7 <h2>@ViewBag.Title</h2>
8
9
10 @using (Html.BeginForm())
11 {
12     @Html.AntiForgeryToken()
13     
14     <div class="form-horizontal">
15         <h4>Projekt</h4>
16         <hr />
17         @Html.ValidationSummary(true, "", new { @class = "text-danger" })
18         @Html.HiddenFor(model => model.id)
19
20         <div class="form-group">
21             @Html.LabelFor(model => model.user_id, "user_id", htmlAttributes: new { @class = "control-label col-md-2" })
22             <div class="col-md-10">
23                 @Html.DropDownList("user_id", null, htmlAttributes: new { @class = "form-control" })
24                 @Html.ValidationMessageFor(model => model.user_id, "", new { @class = "text-danger" })
25             </div>
26         </div>
27
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" })
33             </div>
34         </div>
35
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" })
41             </div>
42         </div>
43
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" })
49             </div>
50         </div>
51
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" })
57             </div>
58         </div>
59
60         <div class="form-group">
61             <div class="col-md-offset-2 col-md-10">
62                 <input type="submit" value="Zapisz" class="btn btn-default" />
63             </div>
64         </div>
65     </div>
66 }
67
68 <div>
69     @Html.ActionLink("Powrót do listy", "Index")
70 </div>
71
72 @section Scripts {
73     @Scripts.Render("~/bundles/jqueryval")
74 }