summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Admin/CreateRole.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-20 16:45:17 -0400
committerMichael <[email protected]>2017-03-20 16:45:17 -0400
commitcdc61eb4ea5309769ad4db84d92594e4dc3dff67 (patch)
treea8297a7aecc4376f07a497a5e02ab5ff165bfbd3 /Project-Unite/Views/Admin/CreateRole.cshtml
parentd9f475e1f33bbf39ca0d79d7a6b0c2fd501b4f2d (diff)
downloadproject-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.gz
project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.bz2
project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.zip
Initial commit (azure deploy test)
Diffstat (limited to 'Project-Unite/Views/Admin/CreateRole.cshtml')
-rw-r--r--Project-Unite/Views/Admin/CreateRole.cshtml59
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>