summaryrefslogtreecommitdiff
path: root/Project-Unite/Views
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-07 10:04:12 -0400
committerMichael <[email protected]>2017-05-07 10:04:12 -0400
commitca5954e7d2b9c2040f6f421816778d8203161563 (patch)
treebb31a48e7632f78e7a1a3d21ac43658dd278c636 /Project-Unite/Views
parente6c0552be8363a597d2427c2ef1fcb73672ed6e1 (diff)
downloadproject-unite-ca5954e7d2b9c2040f6f421816778d8203161563.tar.gz
project-unite-ca5954e7d2b9c2040f6f421816778d8203161563.tar.bz2
project-unite-ca5954e7d2b9c2040f6f421816778d8203161563.zip
Create group page
Diffstat (limited to 'Project-Unite/Views')
-rw-r--r--Project-Unite/Views/Groups/CreateGroup.cshtml50
-rw-r--r--Project-Unite/Views/Groups/Index.cshtml4
2 files changed, 53 insertions, 1 deletions
diff --git a/Project-Unite/Views/Groups/CreateGroup.cshtml b/Project-Unite/Views/Groups/CreateGroup.cshtml
new file mode 100644
index 0000000..3b26f86
--- /dev/null
+++ b/Project-Unite/Views/Groups/CreateGroup.cshtml
@@ -0,0 +1,50 @@
+@model Project_Unite.Models.GroupViewModel
+@{
+ ViewBag.Title = "Create a group";
+}
+
+<h2>Create a group</h2>
+
+<p>This page allows you to create a group. Note that when you create the group, you will leave your current group if you are in one.</p>
+
+@using (Html.BeginForm())
+{
+ <div class="panel panel-danger">
+ <div class="panel-body">
+ @Html.ValidationSummary()
+ </div>
+ </div>
+
+
+ @Html.AntiForgeryToken()
+ <table class="table">
+ <tr>
+ <td style="width:25%">
+ <strong>Group name:</strong>
+ </td>
+ <td>@Html.TextBoxFor(Model=>Model.Name, new{@class="form-control"})</td>
+ </tr>
+ <tr><td><strong>Short name:</strong>
+ <p>Your "Short Name" is simply a tag for your group. Think of a neat acronym to go with your group. Something clever that can fit in 4 characters or less.</p>
+ </td>
+ <td>@Html.TextBoxFor(Model=>Model.ShortName, new { @class = "form-control" })</td>
+ </tr>
+ <tr>
+ <td><strong>Group description:</strong></td>
+ <td>@Html.TextAreaFor(Model=>Model.Description)</td>
+ </tr>
+ <tr>
+ <td><strong>Banner color (hexadecimal):</strong></td>
+ <td>@Html.TextBoxFor(Model=>Model.BannerColorHex, new {@class="form-control"})</td>
+ </tr>
+ <tr>
+ <td><strong>Publicity:</strong></td>
+ <td>@Html.DropDownListFor(Model=>Model.Publicity, Model.Publicities, new { @class = "form-control" })
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" value="Create!" class="btn btn-primary" /></td>
+ </tr>
+
+ </table>
+} \ No newline at end of file
diff --git a/Project-Unite/Views/Groups/Index.cshtml b/Project-Unite/Views/Groups/Index.cshtml
index 7364df0..f0f535f 100644
--- a/Project-Unite/Views/Groups/Index.cshtml
+++ b/Project-Unite/Views/Groups/Index.cshtml
@@ -10,7 +10,9 @@
<p>You can join one of the in-game groups from your Digital Society Control Centre, or you can join one of the many user-created groups here.</p>
-
+<ul class="nav nav-pills">
+ <li><a href="@Url.Action("CreateGroup")"><span class="glyphicon glyphicon-plus"></span> Create new group</a></li>
+</ul>
<table class="table">
<tr>