2009-11-10 17:33:39 +00:00
|
|
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Users.ViewModels.UsersIndexViewModel>" %>
|
2009-11-19 06:06:51 +00:00
|
|
|
<%@ Import Namespace="Orchard.Models"%>
|
2009-11-10 17:33:39 +00:00
|
|
|
<%@ Import Namespace="Orchard.Security" %>
|
|
|
|
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
2009-11-19 09:39:12 +00:00
|
|
|
<% Html.Include("Header"); %>
|
2009-11-10 17:33:39 +00:00
|
|
|
<% Html.BeginForm(); %>
|
|
|
|
<div class="yui-g">
|
|
|
|
<h2>
|
|
|
|
Manage Users</h2>
|
|
|
|
|
|
|
|
<%=Html.ValidationSummary() %>
|
|
|
|
<%=Html.ActionLink("Add a new user", "Create", new {}, new {@class="floatRight topSpacer"}) %>
|
|
|
|
<table id="pluginListTable" cellspacing="0" class="clearLayout">
|
|
|
|
<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) { %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2009-11-19 06:06:51 +00:00
|
|
|
<%=Html.Encode(row.User.UserName) %>
|
2009-11-10 17:33:39 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2009-11-19 06:06:51 +00:00
|
|
|
<%=Html.Encode(row.User.Email) %>
|
2009-11-10 17:33:39 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%=Html.ActionLink("Edit", "Edit", new { row.User.Id })%>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<%}%>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<% Html.EndForm(); %>
|
2009-11-19 09:39:12 +00:00
|
|
|
<% Html.Include("Footer"); %>
|