mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
More touchup of the parts management UI (when editing a content type) before moving on to fields
--HG-- branch : dev
This commit is contained in:
@@ -11,4 +11,7 @@
|
|||||||
.manage-part .manage {
|
.manage-part .manage {
|
||||||
font-size:1.4em;
|
font-size:1.4em;
|
||||||
margin-top:-2.4em;
|
margin-top:-2.4em;
|
||||||
|
}
|
||||||
|
.manage-part .manage.minor {
|
||||||
|
margin-top:-1.7em;
|
||||||
}
|
}
|
@@ -3,7 +3,6 @@
|
|||||||
<fieldset class="manage-part">
|
<fieldset class="manage-part">
|
||||||
<h3><%:Model.PartDefinition.Name %></h3>
|
<h3><%:Model.PartDefinition.Name %></h3>
|
||||||
<div class="manage">
|
<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.
|
<%--// 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 --%>
|
// 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") %>
|
<%:Html.Link("[remove]", "#forshowonlyandnotintendedtowork") %>
|
||||||
@@ -13,10 +12,11 @@
|
|||||||
<% } %> --%>
|
<% } %> --%>
|
||||||
</div>
|
</div>
|
||||||
<%:Html.EditorFor(m => m.Settings, "Settings", "") %><%
|
<%:Html.EditorFor(m => m.Settings, "Settings", "") %><%
|
||||||
if (Model.PartDefinition.Settings.Any()) { %>
|
if (Model.PartDefinition.Settings.Any() || Model.PartDefinition.Fields.Any()) { %>
|
||||||
<h4><%:T("Tenant-wide settings") %></h4>
|
<h4><%:T("Global configuration") %></h4>
|
||||||
<%:Html.DisplayFor(m => m.PartDefinition.Settings, "Settings", "PartDefinition") %><%
|
<div class="manage minor"><%:Html.ActionLink(T("Edit").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") %><%
|
||||||
} %>
|
} %>
|
||||||
<%:Html.EditorFor(m => m.PartDefinition.Fields, "Part.Fields") %>
|
|
||||||
<%:Html.Hidden("PartDefinition.Name", Model.PartDefinition.Name) %>
|
<%:Html.Hidden("PartDefinition.Name", Model.PartDefinition.Name) %>
|
||||||
</fieldset>
|
</fieldset>
|
@@ -510,7 +510,6 @@ button.remove:focus::-moz-focus-inner, .remove.button:focus::-moz-focus-inner {
|
|||||||
.manage {
|
.manage {
|
||||||
float:right;
|
float:right;
|
||||||
margin:0 0 10px 8px;
|
margin:0 0 10px 8px;
|
||||||
overflow:hidden;
|
|
||||||
}
|
}
|
||||||
.actions {
|
.actions {
|
||||||
clear:right;
|
clear:right;
|
||||||
|
Reference in New Issue
Block a user