mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 10:07:55 +08:00
Roughed in Blog Create/Edit admin UI
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042079
This commit is contained in:
@@ -297,7 +297,6 @@ div.confirmation, div.warning, div.critical {
|
|||||||
|
|
||||||
/* Forms
|
/* Forms
|
||||||
----------------------------------------------------------*/
|
----------------------------------------------------------*/
|
||||||
|
|
||||||
fieldset.bulk.actions {
|
fieldset.bulk.actions {
|
||||||
display:inline;
|
display:inline;
|
||||||
margin:0 1.4em -.7em 0;
|
margin:0 1.4em -.7em 0;
|
||||||
@@ -314,12 +313,16 @@ label span {
|
|||||||
font-weight:normal;
|
font-weight:normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* todo: (heskew) try to get .text on stuff like #PublishLaterDate */
|
||||||
select, textarea, input.text, #PublishLaterDate {
|
select, textarea, input.text, #PublishLaterDate {
|
||||||
margin:3px 4px 4px;
|
margin:3px 4px 4px;
|
||||||
padding:2px;
|
padding:2px;
|
||||||
border:1px solid #d2d6c6;
|
border:1px solid #d2d6c6;
|
||||||
color:#5a5b32;
|
color:#5a5b32;
|
||||||
}
|
}
|
||||||
|
select:focus, textarea:focus, input.text:focus, #PublishLaterDate:focus {
|
||||||
|
border-color:#666d51;
|
||||||
|
}
|
||||||
|
|
||||||
input.large.text, textarea, fieldset {
|
input.large.text, textarea, fieldset {
|
||||||
clear:both;
|
clear:both;
|
||||||
@@ -363,7 +366,7 @@ button, .button {
|
|||||||
button:hover, .button:hover,
|
button:hover, .button:hover,
|
||||||
button:focus, .button:focus {
|
button:focus, .button:focus {
|
||||||
background:#8a8f7a;
|
background:#8a8f7a;
|
||||||
border:1px solid #666d51;
|
border-color:#666d51;
|
||||||
color:#f6faea;
|
color:#f6faea;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
|
@@ -3,23 +3,10 @@
|
|||||||
<%@ Import Namespace="Orchard.Security" %>
|
<%@ Import Namespace="Orchard.Security" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||||
<% Html.Include("Head"); %>
|
<% Html.Include("Head"); %>
|
||||||
<div class="yui-u">
|
<h2>Create New Blog</h2>
|
||||||
<h2 class="separator">
|
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> > Create</p>
|
||||||
Create New Blog</h2>
|
<%using (Html.BeginForm()) { %>
|
||||||
<p class="bottomSpacer">
|
<%= Html.ValidationSummary() %>
|
||||||
<a href="<%=Url.Blogs() %>">Manage Blogs</a> > Create
|
<%= Html.EditorForModel() %>
|
||||||
</p>
|
<%}/*EndForm*/%>
|
||||||
</div>
|
|
||||||
<div class="yui-u">
|
|
||||||
<%using (Html.BeginForm()) { %>
|
|
||||||
<ol>
|
|
||||||
<%= Html.ValidationSummary() %>
|
|
||||||
<%= Html.EditorForModel() %>
|
|
||||||
<li class="clearLayout">
|
|
||||||
<input class="button" type="submit" value="Create" />
|
|
||||||
<a href="<%=Url.Blogs() %>" class="button">Cancel</a>
|
|
||||||
</li>
|
|
||||||
</ol>
|
|
||||||
<%}/*EndForm*/%>
|
|
||||||
</div>
|
|
||||||
<% Html.Include("Foot"); %>
|
<% Html.Include("Foot"); %>
|
@@ -1,26 +1,12 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEditViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEditViewModel>" %>
|
||||||
|
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Security" %>
|
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<% Html.Include("Head"); %>
|
<% Html.Include("Head"); %>
|
||||||
<div class="yui-u">
|
<h2>Edit Blog</h2>
|
||||||
<h2 class="separator">
|
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> > Edit #<%= Model.Id%> <strong><%=Html.Encode(Model.Name)%></strong></p>
|
||||||
Edit Blog</h2>
|
<% using (Html.BeginForm()) { %>
|
||||||
<p class="bottomSpacer">
|
<%= Html.ValidationSummary() %>
|
||||||
<a href="<%=Url.Blogs() %>">Manage Blogs</a> > Edit #<%= Model.Id%> <strong><%=Html.Encode(Model.Name)%></strong>
|
<%= Html.EditorForModel()%>
|
||||||
</p>
|
<% } %>
|
||||||
</div>
|
|
||||||
<div class="yui-u">
|
|
||||||
<%using (Html.BeginForm()) { %>
|
|
||||||
<ol>
|
|
||||||
<%= Html.ValidationSummary() %>
|
|
||||||
<%= Html.EditorForModel() %>
|
|
||||||
<li class="clearLayout">
|
|
||||||
<input class="button" type="submit" value="Save" />
|
|
||||||
<a href="<%=Url.Blogs() %>" class="button">Cancel</a>
|
|
||||||
</li>
|
|
||||||
</ol>
|
|
||||||
<%}/*EndForm*/%>
|
|
||||||
</div>
|
|
||||||
<% Html.Include("Foot"); %>
|
<% Html.Include("Foot"); %>
|
@@ -0,0 +1,14 @@
|
|||||||
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogEditViewModel>" %>
|
||||||
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
|
<fieldset>
|
||||||
|
<label for="">Blog Name</label>
|
||||||
|
<%=Html.EditorFor(m => m.Name) %>
|
||||||
|
<fieldset>
|
||||||
|
<%=Html.EditorFor(m => m.Slug, "BlogPermalink") %>
|
||||||
|
</fieldset>
|
||||||
|
<label for="">Description</label>
|
||||||
|
<%=Html.EditorFor(m => m.Description) %>
|
||||||
|
<fieldset>
|
||||||
|
</fieldset>
|
||||||
|
<input class="button" type="submit" value="Create" />
|
||||||
|
</fieldset>
|
@@ -0,0 +1,5 @@
|
|||||||
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||||
|
<fieldset>
|
||||||
|
<label class="sub" for="permalink">Permalink: <span>http://localhost/</span></label>
|
||||||
|
<span><%=Html.TextBox("", Model, new { id = "permalink", @class = "text" })%> <span> « How to write a permalink. » </span></span>
|
||||||
|
</fieldset>
|
@@ -0,0 +1,14 @@
|
|||||||
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CreateBlogViewModel>" %>
|
||||||
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
|
<fieldset>
|
||||||
|
<label for="">Blog Name</label>
|
||||||
|
<%=Html.EditorFor(m => m.Name) %>
|
||||||
|
<fieldset>
|
||||||
|
<%=Html.EditorFor(m => m.Slug, "BlogPermalink") %>
|
||||||
|
</fieldset>
|
||||||
|
<label for="">Description</label>
|
||||||
|
<%=Html.EditorFor(m => m.Description) %>
|
||||||
|
<fieldset>
|
||||||
|
</fieldset>
|
||||||
|
<input class="button" type="submit" value="Create" />
|
||||||
|
</fieldset>
|
@@ -3,7 +3,7 @@
|
|||||||
<% Html.Include("Head"); %>
|
<% Html.Include("Head"); %>
|
||||||
<h2>Add a Page</h2>
|
<h2>Add a Page</h2>
|
||||||
<p>Select your layout from one of the templates below.</p>
|
<p>Select your layout from one of the templates below.</p>
|
||||||
<%using (Html.BeginForm()) { %>
|
<% using (Html.BeginForm()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorForModel() %>
|
<%=Html.EditorForModel() %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
Reference in New Issue
Block a user