Files
Orchard/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/Index.aspx

38 lines
1.5 KiB
Plaintext
Raw Normal View History

<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<UsersIndexViewModel>" %>
<%@ Import Namespace="Orchard.Users.ViewModels"%>
<h1><%: Html.TitleForPage(T("Manage Users").ToString()) %></h1>
<% using (Html.BeginFormAntiForgeryPost()) { %>
<%: Html.ValidationSummary()%>
<div class="manage"><%: Html.ActionLink(T("Add a new user").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
<fieldset>
<table class="items">
<colgroup>
<col id="Name" />
<col id="Email" />
<col id="Edit" />
</colgroup>
<thead>
<tr>
<th scope="col"><%: T("Name")%></th>
<th scope="col"><%: T("Email")%></th>
<th scope="col"><%: T("") %></th>
</tr>
</thead>
<% foreach (var row in Model.Rows)
{ %>
<tr>
<td>
<%: row.UserPart.UserName %>
</td>
<td>
<%: row.UserPart.Email %>
</td>
<td>
<%: Html.ActionLink(T("Edit").ToString(), "Edit", new { row.UserPart.Id })%> |
<%: Html.ActionLink(T("Remove").ToString(), "Delete", new { row.UserPart.Id })%>
</td>
</tr>
<%}%>
</table>
</fieldset>
<% } %>