mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 05:23:33 +08:00
- View for create role.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4039490
This commit is contained in:
@@ -27,5 +27,10 @@ namespace Orchard.Roles.Controllers {
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
||||
public ActionResult Create() {
|
||||
var model = new RoleCreateViewModel();
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -66,10 +66,12 @@
|
||||
<Compile Include="Models\RoleRecord.cs" />
|
||||
<Compile Include="Models\RolesPermissions.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ViewModels\RoleCreateViewModel.cs" />
|
||||
<Compile Include="ViewModels\RolesIndexViewModel.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Package.txt" />
|
||||
<Content Include="Views\Admin\Create.aspx" />
|
||||
<Content Include="Views\Admin\Index.aspx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Content\Site.css" />
|
||||
|
@@ -0,0 +1,6 @@
|
||||
using Orchard.Mvc.ViewModels;
|
||||
|
||||
namespace Orchard.Roles.ViewModels {
|
||||
public class RoleCreateViewModel : AdminViewModel {
|
||||
}
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<RoleCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Roles.ViewModels"%>
|
||||
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Add a Role</title>
|
||||
<% Html.Include("Head"); %>
|
||||
</head>
|
||||
<body>
|
||||
<% Html.Include("Header"); %>
|
||||
<div class="yui-g">
|
||||
<h2 class="separator">Add a Role</h2>
|
||||
<h3>Information</h3>
|
||||
<label for="pageTitle">Role Name:</label>
|
||||
<input id="pageTitle" class="inputText inputTextLarge" name="pageTitle" type="text" />
|
||||
|
||||
<h3>Permissions</h3>
|
||||
|
||||
<h4>Pages Module</h4>
|
||||
<table id="pluginListTable" cellspacing="0" class="roundCorners clearLayout" >
|
||||
<colgroup>
|
||||
<col id="Permission" />
|
||||
<col id="Allow" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Permission</th>
|
||||
<th scope="col">Allow</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td>View pages</td>
|
||||
<td><input type="checkbox" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Create draft pages</td>
|
||||
<td><input type="checkbox" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edit any page</td>
|
||||
<td><input type="checkbox" value="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="button" class="button" value="Save" />
|
||||
<input type="button" class="button" value="Delete" />
|
||||
</div>
|
||||
<% Html.Include("Footer"); %>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user