mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 01:57: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
|
||||
----------------------------------------------------------*/
|
||||
|
||||
fieldset.bulk.actions {
|
||||
display:inline;
|
||||
margin:0 1.4em -.7em 0;
|
||||
@@ -314,12 +313,16 @@ label span {
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
/* todo: (heskew) try to get .text on stuff like #PublishLaterDate */
|
||||
select, textarea, input.text, #PublishLaterDate {
|
||||
margin:3px 4px 4px;
|
||||
padding:2px;
|
||||
border:1px solid #d2d6c6;
|
||||
color:#5a5b32;
|
||||
}
|
||||
select:focus, textarea:focus, input.text:focus, #PublishLaterDate:focus {
|
||||
border-color:#666d51;
|
||||
}
|
||||
|
||||
input.large.text, textarea, fieldset {
|
||||
clear:both;
|
||||
@@ -363,7 +366,7 @@ button, .button {
|
||||
button:hover, .button:hover,
|
||||
button:focus, .button:focus {
|
||||
background:#8a8f7a;
|
||||
border:1px solid #666d51;
|
||||
border-color:#666d51;
|
||||
color:#f6faea;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
@@ -3,23 +3,10 @@
|
||||
<%@ Import Namespace="Orchard.Security" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Head"); %>
|
||||
<div class="yui-u">
|
||||
<h2 class="separator">
|
||||
Create New Blog</h2>
|
||||
<p class="bottomSpacer">
|
||||
<a href="<%=Url.Blogs() %>">Manage Blogs</a> > Create
|
||||
</p>
|
||||
</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>
|
||||
<h2>Create New Blog</h2>
|
||||
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> > Create</p>
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForModel() %>
|
||||
<%}/*EndForm*/%>
|
||||
<% Html.Include("Foot"); %>
|
@@ -1,26 +1,12 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Security" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Head"); %>
|
||||
<div class="yui-u">
|
||||
<h2 class="separator">
|
||||
Edit Blog</h2>
|
||||
<p class="bottomSpacer">
|
||||
<a href="<%=Url.Blogs() %>">Manage Blogs</a> > Edit #<%= Model.Id%> <strong><%=Html.Encode(Model.Name)%></strong>
|
||||
</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>
|
||||
<h2>Edit Blog</h2>
|
||||
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> > Edit #<%= Model.Id%> <strong><%=Html.Encode(Model.Name)%></strong></p>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForModel()%>
|
||||
<% } %>
|
||||
<% 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"); %>
|
||||
<h2>Add a Page</h2>
|
||||
<p>Select your layout from one of the templates below.</p>
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForModel() %>
|
||||
<% } %>
|
||||
|
Reference in New Issue
Block a user