mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-16 01:44:26 +08:00
- View page for Edit Role...
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4039491
This commit is contained in:
parent
534d146dae
commit
2b9caf499d
@ -28,9 +28,16 @@ namespace Orchard.Roles.Controllers {
|
|||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO: NYI
|
||||||
public ActionResult Create() {
|
public ActionResult Create() {
|
||||||
var model = new RoleCreateViewModel();
|
var model = new RoleCreateViewModel();
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO: NYI
|
||||||
|
public ActionResult Edit(int id) {
|
||||||
|
var model = new RoleEditViewModel();
|
||||||
|
return View(model);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,11 +67,13 @@
|
|||||||
<Compile Include="Models\RolesPermissions.cs" />
|
<Compile Include="Models\RolesPermissions.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="ViewModels\RoleCreateViewModel.cs" />
|
<Compile Include="ViewModels\RoleCreateViewModel.cs" />
|
||||||
|
<Compile Include="ViewModels\RoleEditViewModel.cs" />
|
||||||
<Compile Include="ViewModels\RolesIndexViewModel.cs" />
|
<Compile Include="ViewModels\RolesIndexViewModel.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Package.txt" />
|
<Content Include="Package.txt" />
|
||||||
<Content Include="Views\Admin\Create.aspx" />
|
<Content Include="Views\Admin\Create.aspx" />
|
||||||
|
<Content Include="Views\Admin\Edit.aspx" />
|
||||||
<Content Include="Views\Admin\Index.aspx" />
|
<Content Include="Views\Admin\Index.aspx" />
|
||||||
<Content Include="Web.config" />
|
<Content Include="Web.config" />
|
||||||
<Content Include="Content\Site.css" />
|
<Content Include="Content\Site.css" />
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
using Orchard.Mvc.ViewModels;
|
||||||
|
|
||||||
|
namespace Orchard.Roles.ViewModels {
|
||||||
|
public class RoleEditViewModel : AdminViewModel {
|
||||||
|
}
|
||||||
|
}
|
51
src/Orchard.Web/Packages/Orchard.Roles/Views/Admin/Edit.aspx
Normal file
51
src/Orchard.Web/Packages/Orchard.Roles/Views/Admin/Edit.aspx
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<RoleEditViewModel>" %>
|
||||||
|
<%@ 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>Edit a Role</title>
|
||||||
|
<% Html.Include("Head"); %>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<% Html.Include("Header"); %>
|
||||||
|
<div class="yui-g">
|
||||||
|
<h2 class="separator">Edit 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>
|
Loading…
Reference in New Issue
Block a user