mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
@model RolesIndexViewModel
|
|
@using Orchard.Roles.ViewModels;
|
|
|
|
<h1>@Html.TitleForPage(T("Manage Roles").ToString())</h1>
|
|
@using(Html.BeginFormAntiForgeryPost()) {
|
|
Html.ValidationSummary();
|
|
<fieldset class="bulk-actions">
|
|
<label for="publishActions">@T("Actions:")</label>
|
|
<select id="Select1" name="roleActions">
|
|
<option value="1">@T("Remove")</option>
|
|
</select>
|
|
<button type="submit">@T("Apply")</button>
|
|
</fieldset>
|
|
<div class="manage">@Html.ActionLink(T("Add a role").ToString(), "Create", new { }, new { @class = "button primaryAction" })</div>
|
|
<fieldset>
|
|
<table class="items" summary="@T("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"> ↓</th>
|
|
<th scope="col">@T("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>@row.Name</td>
|
|
<td>@Html.ActionLink(T("Edit").ToString(), "Edit", new { row.Id })</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</fieldset>
|
|
} |