Initial commit
[wsti_pai.git] / Projects / Views / ProjectTasks / Create.cshtml
1 @model Projects.Models.ProjectTask
2
3 @{
4     ViewBag.Title = "Create";
5 }
6
7 <h2>Create</h2>
8
9
10 @using (Html.BeginForm()) 
11 {
12     @Html.AntiForgeryToken()
13     
14     <div class="form-horizontal">
15         <h4>ProjectTask</h4>
16         <hr />
17         @Html.ValidationSummary(true, "", new { @class = "text-danger" })
18         <div class="form-group">
19             @Html.LabelFor(model => model.project_id, "project_id", htmlAttributes: new { @class = "control-label col-md-2" })
20             <div class="col-md-10">
21                 @Html.DropDownList("project_id", null, htmlAttributes: new { @class = "form-control" })
22                 @Html.ValidationMessageFor(model => model.project_id, "", new { @class = "text-danger" })
23             </div>
24         </div>
25
26         <div class="form-group">
27             @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
28             <div class="col-md-10">
29                 @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
30                 @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
31             </div>
32         </div>
33
34         <div class="form-group">
35             @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
36             <div class="col-md-10">
37                 @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
38                 @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
39             </div>
40         </div>
41
42         <div class="form-group">
43             @Html.LabelFor(model => model.created_at, htmlAttributes: new { @class = "control-label col-md-2" })
44             <div class="col-md-10">
45                 @Html.EditorFor(model => model.created_at, new { htmlAttributes = new { @class = "form-control" } })
46                 @Html.ValidationMessageFor(model => model.created_at, "", new { @class = "text-danger" })
47             </div>
48         </div>
49
50         <div class="form-group">
51             @Html.LabelFor(model => model.updated_at, htmlAttributes: new { @class = "control-label col-md-2" })
52             <div class="col-md-10">
53                 @Html.EditorFor(model => model.updated_at, new { htmlAttributes = new { @class = "form-control" } })
54                 @Html.ValidationMessageFor(model => model.updated_at, "", new { @class = "text-danger" })
55             </div>
56         </div>
57
58         <div class="form-group">
59             @Html.LabelFor(model => model.task_status_id, "task_status_id", htmlAttributes: new { @class = "control-label col-md-2" })
60             <div class="col-md-10">
61                 @Html.DropDownList("task_status_id", null, htmlAttributes: new { @class = "form-control" })
62                 @Html.ValidationMessageFor(model => model.task_status_id, "", new { @class = "text-danger" })
63             </div>
64         </div>
65
66         <div class="form-group">
67             @Html.LabelFor(model => model.user_id, "user_id", htmlAttributes: new { @class = "control-label col-md-2" })
68             <div class="col-md-10">
69                 @Html.DropDownList("user_id", null, htmlAttributes: new { @class = "form-control" })
70                 @Html.ValidationMessageFor(model => model.user_id, "", new { @class = "text-danger" })
71             </div>
72         </div>
73
74         <div class="form-group">
75             <div class="col-md-offset-2 col-md-10">
76                 <input type="submit" value="Create" class="btn btn-default" />
77             </div>
78         </div>
79     </div>
80 }
81
82 <div>
83     @Html.ActionLink("Back to List", "Index")
84 </div>
85
86 @section Scripts {
87     @Scripts.Render("~/bundles/jqueryval")
88 }