2010-01-06 09:06:55 +00:00
|
|
|
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<UsersIndexViewModel>" %>
|
|
|
|
<%@ Import Namespace="Orchard.Users.ViewModels"%>
|
2010-06-08 23:42:20 -07:00
|
|
|
<h1><%: Html.TitleForPage(T("Manage Users").ToString()) %></h1>
|
2009-12-22 23:32:37 +00:00
|
|
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
2010-06-08 23:42:20 -07:00
|
|
|
<%: Html.ValidationSummary()%>
|
|
|
|
<div class="manage"><%: Html.ActionLink(T("Add a new user").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
2009-12-22 17:47:19 +00:00
|
|
|
<fieldset>
|
|
|
|
<table class="items">
|
|
|
|
<colgroup>
|
|
|
|
<col id="Name" />
|
|
|
|
<col id="Email" />
|
|
|
|
<col id="Edit" />
|
|
|
|
</colgroup>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2010-06-08 23:42:20 -07:00
|
|
|
<th scope="col"><%: T("Name")%></th>
|
|
|
|
<th scope="col"><%: T("Email")%></th>
|
|
|
|
<th scope="col"><%: T("") %></th>
|
2009-12-22 17:47:19 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<% foreach (var row in Model.Rows)
|
|
|
|
{ %>
|
2009-11-10 17:33:39 +00:00
|
|
|
<tr>
|
2009-12-22 17:47:19 +00:00
|
|
|
<td>
|
2010-07-22 23:56:17 -07:00
|
|
|
<%: row.UserPart.UserName %>
|
2009-12-22 17:47:19 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-07-22 23:56:17 -07:00
|
|
|
<%: row.UserPart.Email %>
|
2009-12-22 17:47:19 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-07-22 23:56:17 -07:00
|
|
|
<%: Html.ActionLink(T("Edit").ToString(), "Edit", new { row.UserPart.Id })%> |
|
|
|
|
<%: Html.ActionLink(T("Remove").ToString(), "Delete", new { row.UserPart.Id })%>
|
2009-12-22 17:47:19 +00:00
|
|
|
</td>
|
2009-11-10 17:33:39 +00:00
|
|
|
</tr>
|
2009-12-22 17:47:19 +00:00
|
|
|
<%}%>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
2009-12-17 10:29:33 +00:00
|
|
|
<% } %>
|