mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
More work on the module/feature UI*
- reshuffled the related admin menu - cleaned up a little of each module and feature list page * still all based on the page list semantics --HG-- branch : dev
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Modules.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Features").ToString()) %></h1>
|
||||
<div class="manage"><%=Html.ActionLink(T("∞").ToString(), "Features", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<div class="manage" style="visibility:hidden"><%=Html.ActionLink(T("∞").ToString(), "Features", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<% if (Model.Features.Count() > 0) {
|
||||
|
||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
@@ -19,11 +19,11 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<fieldset class="pageList">
|
||||
<ul class="contentItems"><%
|
||||
foreach (var featureGroup in Model.Features.OrderBy(f => f.Descriptor.Name).GroupBy(f => f.Descriptor.Category)) { %>
|
||||
<li>
|
||||
<li<%=featureGroup == Model.Features.Last() ? " class=\"last\"" : "" %>>
|
||||
<h2><%=Html.Encode(featureGroup.First().Descriptor.Category ?? T("General")) %></h2>
|
||||
<ul><%
|
||||
foreach (var feature in featureGroup) {%>
|
||||
<li>
|
||||
<li<%=feature == featureGroup.Last() ? " class=\"last\"" : "" %>>
|
||||
<div class="summary">
|
||||
<div class="properties">
|
||||
<input type="checkbox" name="selection" value="<%=Html.Encode(feature.Descriptor.Name) %>" />
|
||||
@@ -40,19 +40,12 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
</li><%
|
||||
//dependencies
|
||||
if (feature.Descriptor.Dependencies.Count() > 0) { %>
|
||||
<li> |
|
||||
<%=_Encoded("Depends on: ") %><%
|
||||
<li> | <%=_Encoded("Depends on: ") %><%
|
||||
foreach (var dependency in feature.Descriptor.Dependencies) {
|
||||
%><% if (dependency != feature.Descriptor.Dependencies.First()) { %><%=_Encoded(", ") %><% }
|
||||
%><%=Html.Encode(dependency) %><%
|
||||
} %>
|
||||
</li><%
|
||||
}
|
||||
//dependencies == nothing <- temporary just to get some stuff in the UI
|
||||
else { %>
|
||||
<li> |
|
||||
<%=T("Depends on: <em>nothing</em>") %>
|
||||
</li><%
|
||||
} %>
|
||||
</ul>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user