mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
A little cleanup of the parts management UI (when editing a content type)
--HG-- branch : dev
This commit is contained in:
@@ -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;
|
||||
}
|
@@ -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") %>
|
||||
|
Reference in New Issue
Block a user