1 @model Projects.Models.Project
4 ViewBag.Title = "Create";
10 @using (Html.BeginForm())
12 @Html.AntiForgeryToken()
14 <div class="form-horizontal">
17 @Html.ValidationSummary(true, "", new { @class = "text-danger" })
18 <div class="form-group">
19 @Html.LabelFor(model => model.user_id, "user_id", htmlAttributes: new { @class = "control-label col-md-2" })
20 <div class="col-md-10">
21 @Html.DropDownList("user_id", null, htmlAttributes: new { @class = "form-control" })
22 @Html.ValidationMessageFor(model => model.user_id, "", new { @class = "text-danger" })
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" })
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" })
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" })
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" })
58 <div class="form-group">
59 <div class="col-md-offset-2 col-md-10">
60 <input type="submit" value="Create" class="btn btn-default" />
67 @Html.ActionLink("Back to List", "Index")
71 @Scripts.Render("~/bundles/jqueryval")