Some edit type UI "refactoring" (in progress)

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-02 01:52:42 -07:00
parent c1f4474a85
commit 1df3d89638
3 changed files with 13 additions and 3 deletions

View File

@@ -5,13 +5,18 @@
margin-top:-3.1em;
}
.manage-part {
margin-bottom:2em;
}
.manage-part h3,
.manage-field h3 {
border-bottom:1px solid #EAEAEA;
padding-top:0;
}
.manage-part h3,
.manage-field h3,
.manage-part .manage-field,
.manage-field fieldset,
.manage-part .settings {
padding-left:20px;
}
@@ -39,6 +44,10 @@
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 */
.manage-part dl {
margin:0 0 1em;

View File

@@ -3,7 +3,7 @@
%><h1><%:Html.TitleForPage(T("Edit Content Type").ToString())%></h1>
<p class="breadcrumb"><%:Html.ActionLink(T("Content Types").Text, "index") %><%:T(" &#62; ") %><%:T("Edit Content Type") %></p><%
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() %>
<fieldset>
<label for="DisplayName"><%:T("Display Name") %></label>
@@ -23,7 +23,7 @@ using (Html.BeginFormAntiForgeryPost()) { %>
<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><%:
Html.EditorFor(m => m.Fields, "Fields", "") %>
<fieldset>
<fieldset class="action">
<button class="primaryAction" type="submit"><%:T("Save") %></button>
</fieldset>
</div><%

View File

@@ -1,7 +1,8 @@
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.ContentTypes.ViewModels.EditPartViewModel>" %>
<%
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(" &#62; ") %><%:T("Edit Part") %></p><%
using (Html.BeginFormAntiForgeryPost()) { %>
<%:Html.ValidationSummary() %>
<fieldset>