Add project files.
This commit is contained in:
57
test/Views/Users/Index.cshtml
Normal file
57
test/Views/Users/Index.cshtml
Normal file
@ -0,0 +1,57 @@
|
||||
@model IEnumerable<test.Models.User>
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
@Html.ActionLink("Create New", "Create")
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.User_Name)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.User_LastName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.User_PhoneNumber)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.User_Password)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.User_Status)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.User_Name)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.User_LastName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.User_PhoneNumber)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.User_Password)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.User_Status)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { id=item.User_ID }) |
|
||||
@Html.ActionLink("Details", "Details", new { id=item.User_ID }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { id=item.User_ID })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
</table>
|
||||
Reference in New Issue
Block a user