Files
Orchard/src/Orchard.Web/Modules/Orchard.Roles/Views/Admin/Create.cshtml
Sebastien Ros 0d3be13299 Migrating Orchard.Roles
--HG--
branch : theming
2010-09-10 14:26:04 -07:00

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>
}