mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00

- updating part names to conform to a <name>Part convention --HG-- branch : dev rename : src/Orchard.Web/Modules/Orchard.Users/Drivers/UserDriver.cs => src/Orchard.Web/Modules/Orchard.Users/Drivers/UserPartDriver.cs rename : src/Orchard.Web/Modules/Orchard.Users/Handlers/UserHandler.cs => src/Orchard.Web/Modules/Orchard.Users/Handlers/UserPartHandler.cs rename : src/Orchard.Web/Modules/Orchard.Users/Models/User.cs => src/Orchard.Web/Modules/Orchard.Users/Models/UserPart.cs rename : src/Orchard.Web/Modules/Orchard.Users/Models/UserRecord.cs => src/Orchard.Web/Modules/Orchard.Users/Models/UserPartRecord.cs
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
<%@ 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>
|
|
<% } %> |