Files
Orchard/src/Orchard.Web/Packages/Orchard.Roles/Views/Admin/Create.aspx
skewed 651dcf2857 Admin CSS (mostly) cleaned up - have just a handful of todo's left in there...
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043846
2009-12-12 00:56:02 +00:00

43 lines
1.8 KiB
Plaintext

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<RoleCreateViewModel>" %>
<%@ Import Namespace="Orchard.Roles.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("AdminHead"); %>
<h2>Add Role</h2>
<% using (Html.BeginForm()) { %>
<%=Html.ValidationSummary()%>
<fieldset>
<legend>Information</legend>
<label for="pageTitle">Role Name:</label>
<input id="Name" class="inputText inputTextLarge" name="Name" type="text" value="<%= Model.Name %>" />
</fieldset>
<fieldset>
<legend>Permissions</legend>
<% foreach (var packageName in Model.PackagePermissions.Keys) { %>
<fieldset>
<legend><%=packageName%> Module</legend>
<table class="items">
<colgroup>
<col id="Permission" />
<col id="Allow" />
</colgroup>
<thead>
<tr>
<th scope="col">Permission</th>
<th scope="col">Allow</th>
</tr>
</thead>
<% foreach (var permission in Model.PackagePermissions[packageName]) {%>
<tr>
<td><%=permission.Description%></td>
<td style="width:60px;/* todo: (heskew) make not inline :("><input type="checkbox" value="true" name="<%="Checkbox." + permission.Name%>"/></td>
</tr>
<% } %>
</table>
</fieldset>
<% } %>
</fieldset>
<fieldset>
<input type="submit" class="button" value="Save" />
</fieldset>
<% } %>
<% Html.Include("AdminFoot"); %>