mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
@model RoleCreateViewModel
|
|
@using Orchard.Roles.ViewModels
|
|
<h1>@Html.TitleForPage(T("Add Role").ToString())</h1>
|
|
@using (Html.BeginFormAntiForgeryPost()) {
|
|
Html.ValidationSummary();
|
|
<fieldset>
|
|
<legend>@T("Information")</legend>
|
|
<label for="pageTitle">@T("Role Name:")</label>
|
|
<input id="Name" class="text" name="Name" type="text" value="@Model.Name" />
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend>@T("Permissions")</legend>
|
|
@foreach (var featureName in Model.FeaturePermissions.Keys) {
|
|
<fieldset>
|
|
<legend>@T("{0} Module", featureName)</legend>
|
|
<table class="items">
|
|
<colgroup>
|
|
<col id="Permission" />
|
|
<col id="Allow" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">@T("Permission")</th>
|
|
<th scope="col">@T("Allow")</th>
|
|
</tr>
|
|
</thead>
|
|
@foreach (var permission in Model.FeaturePermissions[featureName]) {
|
|
<tr>
|
|
<td>@permission.Description</td>
|
|
<td style="width:60px;"><input type="checkbox" value="true" name="@T("Checkbox.{0}", permission.Name)"/></td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</fieldset>
|
|
}
|
|
</fieldset>
|
|
<fieldset>
|
|
<input type="submit" class="button primaryAction" value="@T("Save")" />
|
|
</fieldset>
|
|
} |