mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
create user views
This commit is contained in:
parent
7206bca7d4
commit
15f4ac3754
3 changed files with 30 additions and 0 deletions
|
@ -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\" />
|
||||
|
|
25
Project-Unite/Views/Admin/CreateUser.cshtml
Normal file
25
Project-Unite/Views/Admin/CreateUser.cshtml
Normal 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>
|
||||
}
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue