diff options
Diffstat (limited to 'Project-Unite/Views/Admin/CreateRole.cshtml')
| -rw-r--r-- | Project-Unite/Views/Admin/CreateRole.cshtml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Project-Unite/Views/Admin/CreateRole.cshtml b/Project-Unite/Views/Admin/CreateRole.cshtml new file mode 100644 index 0000000..736f09d --- /dev/null +++ b/Project-Unite/Views/Admin/CreateRole.cshtml @@ -0,0 +1,59 @@ +@model Project_Unite.Models.Role + +@{ + ViewBag.Title = "Create"; +} + +<h2>Create</h2> + +@using (Html.BeginForm()) +{ + @Html.AntiForgeryToken() + + <div class="form-horizontal"> + <h4>Role</h4> + <hr /> + @Html.ValidationSummary(true, "", new { @class = "text-danger" }) + <div class="form-group"> + @Html.LabelFor(model => model.Id, htmlAttributes: new { @class = "control-label col-md-2" }) + <div class="col-md-10"> + @Html.EditorFor(model => model.Id, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.Id, "", new { @class = "text-danger" }) + </div> + </div> + + <div class="form-group"> + @Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "control-label col-md-2" }) + <div class="col-md-10"> + @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" }) + </div> + </div> + + <div class="form-group"> + @Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" }) + <div class="col-md-10"> + @Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" }) + </div> + </div> + + <div class="form-group"> + @Html.LabelFor(model => model.ColorHex, htmlAttributes: new { @class = "control-label col-md-2" }) + <div class="col-md-10"> + @Html.EditorFor(model => model.ColorHex, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.ColorHex, "", new { @class = "text-danger" }) + </div> + </div> + + <div class="form-group"> + <div class="col-md-offset-2 col-md-10"> + <input type="submit" value="Create" class="btn btn-default" /> + </div> + </div> + </div> +} + +<div> + @Html.ActionLink("Back to List", "Index") +</div> |
