A little cleanup of the parts management UI (when editing a content type)

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-06-22 16:06:05 -07:00
parent 99cd97e080
commit 85544d1059
2 changed files with 11 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -1,8 +1,9 @@
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<EditTypePartViewModel>" %>
<%@ Import Namespace="Orchard.Core.Contents.ViewModels" %>
<fieldset>
<fieldset class="manage-part">
<h3><%:Model.PartDefinition.Name %></h3>
<div class="manage add-to-type">
<div class="manage">
<%: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()) { %>
<h4><%:T("Tenant-wide settings") %></h4>
<div class="manage"><%:Html.ActionLink(T("Edit part settings").Text, "EditPart", new { area = "Contents", id = Model.PartDefinition.Name }) %></div>
<%:Html.DisplayFor(m => m.PartDefinition.Settings, "Settings", "PartDefinition") %><%
} %>
<%:Html.EditorFor(m => m.PartDefinition.Fields, "Part.Fields") %>