mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 17:32:44 +08:00
- Moving all* BeginForm usage to BeginFormAntiForgeryPost *except for "complicated" BeginForms that get an AntiForgeryTokenOrchard inserted manually - Some page title cleanup (mainly in the admin) --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044508
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Roles.ViewModels.RolesIndexViewModel>" %>
|
|
<h2><%=Html.TitleForPage("Manage Roles")%></h2>
|
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
|
<%=Html.ValidationSummary() %>
|
|
<fieldset class="actions bulk">
|
|
<label for="publishActions">Actions: </label>
|
|
<select id="Select1" name="roleActions">
|
|
<option value="1">Delete</option>
|
|
</select>
|
|
<input class="button" type="submit" value="Apply" />
|
|
</fieldset>
|
|
<div class="manage"><%=Html.ActionLink("Add a role", "Create", new {}, new { @class = "button" }) %></div>
|
|
<fieldset>
|
|
<table class="items" summary="This is a table of the roles currently available for use in your application.">
|
|
<colgroup>
|
|
<col id="Col1" />
|
|
<col id="Col2" />
|
|
<col id="Col3" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col"></th>
|
|
</tr>
|
|
</thead>
|
|
<%foreach (var row in Model.Rows) { %>
|
|
<tr>
|
|
<td><input type="checkbox" value="true" name="<%= "Checkbox." + row.Id %>"/></td>
|
|
<td><%=Html.Encode(row.Name) %></td>
|
|
<td><%=Html.ActionLink("Edit", "Edit", new { row.Id })%></td>
|
|
</tr>
|
|
<%}%>
|
|
</table>
|
|
</fieldset>
|
|
<% } %> |