From 85544d105975968586e593ac7e7552b7112bf0ab Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Tue, 22 Jun 2010 16:06:05 -0700 Subject: [PATCH] A little cleanup of the parts management UI (when editing a content type) --HG-- branch : dev --- src/Orchard.Web/Core/Contents/Styles/admin.css | 8 ++++++++ .../Core/Contents/Views/EditorTemplates/Part.ascx | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/Orchard.Web/Core/Contents/Styles/admin.css b/src/Orchard.Web/Core/Contents/Styles/admin.css index d6614bb1f..e2c9d7ad2 100644 --- a/src/Orchard.Web/Core/Contents/Styles/admin.css +++ b/src/Orchard.Web/Core/Contents/Styles/admin.css @@ -3,4 +3,12 @@ } .manage.add-to-type { margin-top:-4em; +} + +.manage-part h3 { + border-bottom:1px solid #EAEAEA; +} +.manage-part .manage { + font-size:1.4em; + margin-top:-2.4em; } \ No newline at end of file diff --git a/src/Orchard.Web/Core/Contents/Views/EditorTemplates/Part.ascx b/src/Orchard.Web/Core/Contents/Views/EditorTemplates/Part.ascx index 7a8587215..95afcda57 100644 --- a/src/Orchard.Web/Core/Contents/Views/EditorTemplates/Part.ascx +++ b/src/Orchard.Web/Core/Contents/Views/EditorTemplates/Part.ascx @@ -1,8 +1,9 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Core.Contents.ViewModels" %> -
+

<%:Model.PartDefinition.Name %>

-
+
+ <%:Html.ActionLink(T("Edit").Text, "EditPart", new { area = "Contents", id = Model.PartDefinition.Name }) %><%: T(" | ")%> <%--// these inline forms can't be here. should probably have some JavaScript in here to build up the forms and add the "remove" link. // get the antiforgery token from the edit type form and mark up the part in a semantic way so I can get some info from the DOM --%> <%:Html.Link("[remove]", "#forshowonlyandnotintendedtowork") %> @@ -14,7 +15,6 @@ <%:Html.EditorFor(m => m.Settings, "Settings", "") %><% if (Model.PartDefinition.Settings.Any()) { %>

<%:T("Tenant-wide settings") %>

-
<%:Html.ActionLink(T("Edit part settings").Text, "EditPart", new { area = "Contents", id = Model.PartDefinition.Name }) %>
<%:Html.DisplayFor(m => m.PartDefinition.Settings, "Settings", "PartDefinition") %><% } %> <%:Html.EditorFor(m => m.PartDefinition.Fields, "Part.Fields") %>