mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Some edit type UI "refactoring" (in progress)
--HG-- branch : dev
This commit is contained in:
@@ -5,13 +5,18 @@
|
|||||||
margin-top:-3.1em;
|
margin-top:-3.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.manage-part {
|
||||||
|
margin-bottom:2em;
|
||||||
|
}
|
||||||
.manage-part h3,
|
.manage-part h3,
|
||||||
.manage-field h3 {
|
.manage-field h3 {
|
||||||
border-bottom:1px solid #EAEAEA;
|
border-bottom:1px solid #EAEAEA;
|
||||||
padding-top:0;
|
padding-top:0;
|
||||||
}
|
}
|
||||||
.manage-part h3,
|
.manage-part h3,
|
||||||
|
.manage-field h3,
|
||||||
.manage-part .manage-field,
|
.manage-part .manage-field,
|
||||||
|
.manage-field fieldset,
|
||||||
.manage-part .settings {
|
.manage-part .settings {
|
||||||
padding-left:20px;
|
padding-left:20px;
|
||||||
}
|
}
|
||||||
@@ -39,6 +44,10 @@
|
|||||||
padding-left:0;
|
padding-left:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fieldset.action {
|
||||||
|
margin-top:2em;
|
||||||
|
}
|
||||||
|
|
||||||
/* should pull this back into the base admin theme css, w/out the .manage-part of course */
|
/* should pull this back into the base admin theme css, w/out the .manage-part of course */
|
||||||
.manage-part dl {
|
.manage-part dl {
|
||||||
margin:0 0 1em;
|
margin:0 0 1em;
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
%><h1><%:Html.TitleForPage(T("Edit Content Type").ToString())%></h1>
|
%><h1><%:Html.TitleForPage(T("Edit Content Type").ToString())%></h1>
|
||||||
<p class="breadcrumb"><%:Html.ActionLink(T("Content Types").Text, "index") %><%:T(" > ") %><%:T("Edit Content Type") %></p><%
|
<p class="breadcrumb"><%:Html.ActionLink(T("Content Types").Text, "index") %><%:T(" > ") %><%:T("Edit Content Type") %></p><%
|
||||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%--//todo: come up with real itemtype definitions and locations for said definitions--%>
|
<%--// todo: come up with real itemtype definitions and locations for said definitions--%>
|
||||||
<div itemscope itemid="<%:Model.Name %>" itemtype="http://orchardproject.net/data/ContentType"><%:Html.ValidationSummary() %>
|
<div itemscope itemid="<%:Model.Name %>" itemtype="http://orchardproject.net/data/ContentType"><%:Html.ValidationSummary() %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="DisplayName"><%:T("Display Name") %></label>
|
<label for="DisplayName"><%:T("Display Name") %></label>
|
||||||
@@ -23,7 +23,7 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
|||||||
<h2><%:T("Fields") %></h2>
|
<h2><%:T("Fields") %></h2>
|
||||||
<div class="manage add-to-type"><%: Html.ActionLink(T("Add").Text, "AddFieldTo", new { area = "Orchard.ContentTypes", id = Model.Name }, new { @class = "button" }) %></div><%:
|
<div class="manage add-to-type"><%: Html.ActionLink(T("Add").Text, "AddFieldTo", new { area = "Orchard.ContentTypes", id = Model.Name }, new { @class = "button" }) %></div><%:
|
||||||
Html.EditorFor(m => m.Fields, "Fields", "") %>
|
Html.EditorFor(m => m.Fields, "Fields", "") %>
|
||||||
<fieldset>
|
<fieldset class="action">
|
||||||
<button class="primaryAction" type="submit"><%:T("Save") %></button>
|
<button class="primaryAction" type="submit"><%:T("Save") %></button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div><%
|
</div><%
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.ContentTypes.ViewModels.EditPartViewModel>" %>
|
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.ContentTypes.ViewModels.EditPartViewModel>" %>
|
||||||
<%
|
<%
|
||||||
Html.RegisterStyle("admin.css"); %>
|
Html.RegisterStyle("admin.css"); %>
|
||||||
<h1><%:Html.TitleForPage(T("Edit Part").ToString()) %></h1><%
|
<h1><%:Html.TitleForPage(T("Edit Part").ToString()) %></h1>
|
||||||
|
<p class="breadcrumb"><%:Html.ActionLink(T("Content Types").Text, "index") %><%:T(" > ") %><%:T("Edit Part") %></p><%
|
||||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%:Html.ValidationSummary() %>
|
<%:Html.ValidationSummary() %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
Reference in New Issue
Block a user