Some minor tweaks to blog ui.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043116
This commit is contained in:
ErikPorter
2009-12-03 22:33:34 +00:00
parent 3b145f93da
commit 9f81c16228
3 changed files with 8 additions and 5 deletions

View File

@@ -70,6 +70,7 @@
<Compile Include="Extensions\BlogCreateViewModelExtensions.cs" /> <Compile Include="Extensions\BlogCreateViewModelExtensions.cs" />
<Compile Include="Extensions\BlogPostCreateViewModelExtensions.cs" /> <Compile Include="Extensions\BlogPostCreateViewModelExtensions.cs" />
<Compile Include="Extensions\HtmlHelperExtensions.cs" /> <Compile Include="Extensions\HtmlHelperExtensions.cs" />
<Compile Include="Extensions\UriExtensions.cs" />
<Compile Include="Extensions\UrlHelperExtensions.cs" /> <Compile Include="Extensions\UrlHelperExtensions.cs" />
<Compile Include="Permissions.cs" /> <Compile Include="Permissions.cs" />
<Compile Include="Routing\IsBlogConstraint.cs" /> <Compile Include="Routing\IsBlogConstraint.cs" />

View File

@@ -1,5 +1,6 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
<fieldset> <fieldset>
<label class="sub" for="permalink">Permalink: <span>http://localhost/</span></label> <label class="sub" for="permalink">Permalink: <span><%=Request.Url.ToRootString() %>/</span></label>
<span><%=Html.TextBox("", Model, new { id = "permalink", @class = "text" })%> <span> &laquo; How to write a permalink. &raquo; </span></span> <span><%=Html.TextBox("", Model, new { id = "permalink", @class = "text" })%> <span> &laquo; How to write a permalink. &raquo; </span></span>
</fieldset> </fieldset>

View File

@@ -1,4 +1,5 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogPostEditViewModel>" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogPostEditViewModel>" %>
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
<%@ Import Namespace="Orchard.Blogs.ViewModels"%> <%@ Import Namespace="Orchard.Blogs.ViewModels"%>
<div class="sections"> <div class="sections">
<div class="primary"> <div class="primary">
@@ -9,7 +10,7 @@
<span><%=Html.TextBoxFor(m => m.Title, new { id = "title", @class = "text" })%></span> <span><%=Html.TextBoxFor(m => m.Title, new { id = "title", @class = "text" })%></span>
</fieldset> </fieldset>
<fieldset> <fieldset>
<label class="sub" for="permalink">Permalink: <span>http://localhost/<%=Model.Blog.Slug %>/</span></label> <label class="sub" for="permalink">Permalink: <span><%=Request.Url.ToRootString() %>/<%=Model.Blog.Slug %>/</span></label>
<span><%=Html.TextBoxFor(m => m.Slug, new { id = "permalink", @class = "text" })%> <span> &laquo; How to write a permalink. &raquo; </span></span> <span><%=Html.TextBoxFor(m => m.Slug, new { id = "permalink", @class = "text" })%> <span> &laquo; How to write a permalink. &raquo; </span></span>
</fieldset> </fieldset>
<fieldset> <fieldset>
@@ -22,15 +23,15 @@
<div class="secondary"> <div class="secondary">
<h3>Publish Settings</h3> <h3>Publish Settings</h3>
<fieldset> <fieldset>
<label for="Command_PublishNow"><%=Html.RadioButton("Command", "PublishNow", new { id = "Command_PublishNow" }) %> Publish Now</label> <label for="Command_PublishNow"><%=Html.RadioButton("Command", "PublishNow", true, new { id = "Command_PublishNow" }) %> Publish Now</label>
</fieldset> </fieldset>
<fieldset> <%--<fieldset>
<label for="Command_PublishLater"><%=Html.RadioButton("Command", "PublishLater", new { id = "Command_PublishLater" }) %> Publish Later</label> <label for="Command_PublishLater"><%=Html.RadioButton("Command", "PublishLater", new { id = "Command_PublishLater" }) %> Publish Later</label>
<%=Html.EditorFor(m => m.Published) %> <%=Html.EditorFor(m => m.Published) %>
</fieldset> </fieldset>
<fieldset> <fieldset>
<label for="Command_SaveDraft"><%=Html.RadioButton("Command", "SaveDraft", new { id = "Command_SaveDraft" }) %> Save Draft</label> <label for="Command_SaveDraft"><%=Html.RadioButton("Command", "SaveDraft", new { id = "Command_SaveDraft" }) %> Save Draft</label>
</fieldset> </fieldset>--%>
<fieldset> <fieldset>
<input class="button" type="submit" name="submit.Save" value="Save"/> <input class="button" type="submit" name="submit.Save" value="Save"/>
</fieldset> </fieldset>