create user views

This commit is contained in:
Michael 2017-03-24 20:37:45 -04:00
parent 7206bca7d4
commit 15f4ac3754
3 changed files with 30 additions and 0 deletions

View file

@ -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\" />

View file

@ -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>
}

View file

@ -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>