mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +08:00
Some admin UI updates mostly around blog management
--HG-- branch : dev
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContainerEditorViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Core.Common.ViewModels" %>
|
||||
<fieldset>
|
||||
<%: Html.LabelFor(m=>m.ContainerId) %>
|
||||
<%: Html.EditorFor(m=>m.ContainerId) %>
|
||||
<%: Html.ValidationMessageFor(m=>m.ContainerId) %>
|
||||
</fieldset>
|
||||
<%: Html.HiddenFor(m=>m.ContainerId) %>
|
||||
</fieldset>
|
||||
@@ -1,4 +1,7 @@
|
||||
.content-localization .content-localizations li,
|
||||
.summary .content-localization {
|
||||
margin: .7em 0;
|
||||
}
|
||||
.content-localization .content-localizations li,
|
||||
.content-localization .add-localization {
|
||||
font-size:1.4em;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Orchard.Blogs.Drivers {
|
||||
ContentItemTemplate("Items/Blogs.Blog").LongestMatch(displayType, "Summary", "DetailAdmin", "SummaryAdmin"),
|
||||
ContentPartTemplate(blogPart, "Parts/Blogs.Blog.Manage").Location("manage"),
|
||||
ContentPartTemplate(blogPart, "Parts/Blogs.Blog.Metadata").Location("metadata"),
|
||||
ContentPartTemplate(blogPart, "Parts/Blogs.Blog.Description").Location("primary"),
|
||||
ContentPartTemplate(blogPart, "Parts/Blogs.Blog.Description").Location("manage", "after"),
|
||||
blogPosts == null
|
||||
? null
|
||||
: ContentPartTemplate(
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
.blogdescription {
|
||||
margin-top:1em;
|
||||
#main .blog-description p {
|
||||
margin-bottom:1em;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BlogEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<h1><%: Html.TitleForPage(T("Edit Blog").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Blog Properties").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorForItem(m => m.Blog) %><%
|
||||
|
||||
@@ -3,18 +3,6 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h1><a href="<%: Url.BlogForAdmin(Model.Item.Slug) %>"><%: Html.TitleForPage(Model.Item.Name) %></a></h1>
|
||||
<% Html.Zone("manage"); %><%--
|
||||
<form>
|
||||
<div class="actions bulk">
|
||||
<fieldset>
|
||||
<label for="filterResults"><%: T("Filter:")%></label>
|
||||
<select id="filterResults" name="">
|
||||
<option value="">All Posts</option>
|
||||
<option value="">Published Posts</option>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%: T("Apply") %>"/>
|
||||
</fieldset>
|
||||
</div>
|
||||
</form>--%>
|
||||
<% Html.Zone("manage"); %>
|
||||
<div class="manage"><a href="<%: Url.BlogPostCreate(Model.Item) %>" class="add button primaryAction"><%: T("New Post")%></a></div>
|
||||
<% Html.Zone("primary"); %>
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BlogPart>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<div class="blogdescription">
|
||||
<div class="blog-description">
|
||||
<p><%: Model.Description %></p>
|
||||
</div>
|
||||
@@ -4,7 +4,7 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%><%
|
||||
Html.RegisterStyle("admin.css");
|
||||
if (AuthorizedFor(Permissions.ManageBlogs)) { %>
|
||||
<div class="folderProperties">
|
||||
<p><a href="<%: Url.BlogEdit(Model.Slug) %>" class="edit"><%: T("Edit") %></a></p>
|
||||
<div class="item-properties actions">
|
||||
<p><a href="<%: Url.BlogEdit(Model.Slug) %>" class="edit"><%: T("Blog Properties") %></a></p>
|
||||
</div><%
|
||||
} %>
|
||||
@@ -559,13 +559,19 @@ button.remove:focus::-moz-focus-inner, .remove.button:focus::-moz-focus-inner {
|
||||
}
|
||||
.manage {
|
||||
float:right;
|
||||
margin:0 0 10px 8px;
|
||||
margin:0 0 1em .8em;
|
||||
}
|
||||
.actions {
|
||||
clear:right;
|
||||
padding:0;
|
||||
text-align:right;
|
||||
}
|
||||
.item-properties.actions {
|
||||
margin-bottom:.5em;
|
||||
margin-top:-5em;
|
||||
overflow:hidden;
|
||||
padding:1px;
|
||||
}
|
||||
.contentItems .actions li {
|
||||
background:inherit;
|
||||
border:0;
|
||||
@@ -726,7 +732,7 @@ table .button {
|
||||
|
||||
.contentItems .summary {
|
||||
overflow:auto;
|
||||
padding:1.2em .4em;
|
||||
padding:1.2em .4em .5em;
|
||||
}
|
||||
.contentItems .properties {
|
||||
float:left;
|
||||
@@ -738,7 +744,8 @@ table .button {
|
||||
display:inline;
|
||||
}
|
||||
.contentItems.bulk-items .metadata, .contentItems.bulk-items .primary {
|
||||
margin:.6em 0 0 2em;
|
||||
margin:.7em 0 .7em 2em;
|
||||
overflow:auto;
|
||||
}
|
||||
.contentItems.bulk-items .primary {
|
||||
clear:both;
|
||||
@@ -803,7 +810,7 @@ table .button {
|
||||
/* Fields
|
||||
----------------------------------------------------------*/
|
||||
/* TextField */
|
||||
#main .summary .text-field {
|
||||
#main .summary p.text-field {
|
||||
margin:.5em 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user