2010-01-06 09:06:55 +00:00
|
|
|
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<UsersIndexViewModel>" %>
|
|
|
|
<%@ Import Namespace="Orchard.Users.ViewModels"%>
|
|
|
|
<h1><%=Html.TitleForPage(T("Manage Users").ToString()) %></h1>
|
2009-12-22 23:32:37 +00:00
|
|
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
2009-12-17 10:29:33 +00:00
|
|
|
<%=Html.ValidationSummary()%>
|
2010-03-08 10:52:05 -08:00
|
|
|
<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-01-06 09:06:55 +00:00
|
|
|
<th scope="col"><%=_Encoded("Name")%></th>
|
|
|
|
<th scope="col"><%=_Encoded("Email")%></th>
|
|
|
|
<th scope="col"><%=_Encoded("") %></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-06-08 22:44:30 -07:00
|
|
|
<%: row.User.UserName %>
|
2009-12-22 17:47:19 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-06-08 22:44:30 -07:00
|
|
|
<%: row.User.Email %>
|
2009-12-22 17:47:19 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-01-27 20:39:35 +00:00
|
|
|
<%=Html.ActionLink(T("Edit").ToString(), "Edit", new { row.User.Id })%> |
|
2010-03-09 01:13:07 -08:00
|
|
|
<%=Html.ActionLink(T("Remove").ToString(), "Delete", new { row.User.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
|
|
|
<% } %>
|