summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-24 20:37:45 -0400
committerMichael <[email protected]>2017-03-24 20:37:45 -0400
commit15f4ac37540589a4c8d565428ca2fe61f968a244 (patch)
treeb8b68f0dd412a83274f786f533753830f23fbc99
parent7206bca7d45e9662e4fb58525408513eee62edab (diff)
downloadproject-unite-15f4ac37540589a4c8d565428ca2fe61f968a244.tar.gz
project-unite-15f4ac37540589a4c8d565428ca2fe61f968a244.tar.bz2
project-unite-15f4ac37540589a4c8d565428ca2fe61f968a244.zip
create user views
-rw-r--r--Project-Unite/Project-Unite.csproj1
-rw-r--r--Project-Unite/Views/Admin/CreateUser.cshtml25
-rw-r--r--Project-Unite/Views/Admin/Users.cshtml4
3 files changed, 30 insertions, 0 deletions
diff --git a/Project-Unite/Project-Unite.csproj b/Project-Unite/Project-Unite.csproj
index b45abe5..a8676af 100644
--- a/Project-Unite/Project-Unite.csproj
+++ b/Project-Unite/Project-Unite.csproj
@@ -510,6 +510,7 @@
<Content Include="Views\Legal\TOS.cshtml" />
<Content Include="Views\Profiles\ViewProfile.cshtml" />
<Content Include="Views\Profiles\_NewPost.cshtml" />
+ <Content Include="Views\Admin\CreateUser.cshtml" />
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
diff --git a/Project-Unite/Views/Admin/CreateUser.cshtml b/Project-Unite/Views/Admin/CreateUser.cshtml
new file mode 100644
index 0000000..0a2fbb8
--- /dev/null
+++ b/Project-Unite/Views/Admin/CreateUser.cshtml
@@ -0,0 +1,25 @@
+@model Project_Unite.Models.CreateUserModel
+@{
+ ViewBag.Title = "Create user";
+ ViewBag.Admin = true;
+}
+
+<h2>Create a user</h2>
+
+<p>If you are migrating users from a database, all you need is their email and username. We'll handle the rest - like making them reset their password and confirm their email.</p>
+
+@using (Html.BeginForm())
+{
+ @Html.AntiForgeryToken()
+ <table class="table">
+ <tr>
+ <td><strong>User email: </strong></td>
+ <td>@Html.TextBoxFor(Model=>Model.Email, new{@class="form-control", type="email"})</td>
+ </tr>
+ <tr>
+ <td><strong>User display name: </strong></td>
+ <td>@Html.TextBoxFor(Model => Model.Username, new { @class = "form-control" })</td>
+ </tr>
+
+ </table>
+}
diff --git a/Project-Unite/Views/Admin/Users.cshtml b/Project-Unite/Views/Admin/Users.cshtml
index a9830c5..117ed38 100644
--- a/Project-Unite/Views/Admin/Users.cshtml
+++ b/Project-Unite/Views/Admin/Users.cshtml
@@ -8,6 +8,10 @@
<p>Below is a list of all users in the database.</p>
+<ul class="nav nav-pills">
+ <li><a href="@Url.Action("CreateUser")"><span class="glyphicon glyphicon-plus"></span> Create user</a></li>
+</ul>
+
<table class="table">
<tr>
<th style="width:85%">User</th>