2009-11-10 17:33:39 +00:00
|
|
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Users.ViewModels.UsersIndexViewModel>" %>
|
2009-12-21 20:29:53 +00:00
|
|
|
<%@ Import Namespace="Orchard.ContentManagement"%>
|
2009-11-10 17:33:39 +00:00
|
|
|
<%@ Import Namespace="Orchard.Security" %>
|
2009-12-23 16:30:15 +00:00
|
|
|
<h2><%=Html.TitleForPage("Manage Users") %></h2>
|
2009-12-22 23:32:37 +00:00
|
|
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
2009-12-17 10:29:33 +00:00
|
|
|
<%=Html.ValidationSummary()%>
|
2009-12-22 17:47:19 +00:00
|
|
|
<div class="manage"><%=Html.ActionLink("Add a new user", "Create", new { }, new { @class = "button" })%></div>
|
|
|
|
<fieldset>
|
|
|
|
<table class="items">
|
|
|
|
<colgroup>
|
|
|
|
<col id="Name" />
|
|
|
|
<col id="Email" />
|
|
|
|
<col id="Edit" />
|
|
|
|
</colgroup>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col">
|
|
|
|
Name
|
|
|
|
</th>
|
|
|
|
<th scope="col">
|
|
|
|
Email
|
|
|
|
</th>
|
|
|
|
<th scope="col">
|
|
|
|
</th>
|
|
|
|
</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>
|
|
|
|
<%=Html.Encode(row.User.UserName)%>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%=Html.Encode(row.User.Email)%>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%=Html.ActionLink("Edit", "Edit", new { row.User.Id })%>
|
|
|
|
</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
|
|
|
<% } %>
|