More admin cleanup and consolidation...

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042981
This commit is contained in:
skewed
2009-12-02 22:49:30 +00:00
parent 46f5a1b43e
commit 82752d77a9
43 changed files with 215 additions and 368 deletions

View File

@@ -51,16 +51,14 @@ html {
color:#525e50; color:#525e50;
} }
body { body {
color:#5a5b32;
font-family:Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:62.5%; /* 10px */ font-size:62.5%; /* 10px */
line-height:1.6em; line-height:1.6em;
margin:0 auto 1em; margin:0 auto 1em;
min-width:94.6em; /* 946px */ min-width:94.6em; /* 946px */
padding:0 .4em; padding:0 .4em;
} }
body, input, select, textarea {
color:#5a5b32;
font-family:Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body#preview { body#preview {
min-width:0; min-width:0;
} }
@@ -152,11 +150,13 @@ h2 { font-size:2.4em; } /* 24px */
h3 { font-size:2.1em; } /* 21px */ h3 { font-size:2.1em; } /* 21px */
h4 { font-size:1.8em; } /* 18px */ h4 { font-size:1.8em; } /* 18px */
h5 { font-size:1.6em; } /* 16px */ h5 { font-size:1.6em; } /* 16px */
h6, p, label, input, select, .button, .cancel /* todo: (heskew) need to do something better with cancel */, h6, p, label, input, select, .button, .cancel /* todo: (heskew) need to do something better with cancel */,
.message, th, td { font-size:1.5em; line-height:1.5em; } /* 15px */ .message, th, td { font-size:1.5em; line-height:1.5em; } /* 15px */
p .button { font-size:inherit; } p .button,
td *, .mceLayout td { font-size:inherit; }
h3 span { font-size:.57em; } h3 span { font-size:.57em; } /* 12px */
/* ---------- Links ---------- */ /* ---------- Links ---------- */
a, a:link, a:visited { a, a:link, a:visited {
@@ -382,7 +382,7 @@ button:focus, .button:focus {
} }
#main div.actions { #main div.actions {
height:2em; height:2em;
padding:.6em 0 0; padding:.6em 0 .1em;
text-align:right; text-align:right;
} }
#main .manage a.button { #main .manage a.button {

View File

@@ -1,6 +1,6 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Core.Settings.ViewModels.SettingsIndexViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Core.Settings.ViewModels.SettingsIndexViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<div class="yui-u"> <div class="yui-u">
<h2 class="separator"> <h2 class="separator">
Edit Settings</h2> Edit Settings</h2>
@@ -21,4 +21,4 @@
</ol> </ol>
<%}/*EndForm*/%> <%}/*EndForm*/%>
</div> </div>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -161,8 +161,6 @@
<Content Include="Content\Admin\css\images\background_header.jpg" /> <Content Include="Content\Admin\css\images\background_header.jpg" />
<Content Include="Content\Admin\css\images\orchardLogo.jpg" /> <Content Include="Content\Admin\css\images\orchardLogo.jpg" />
<Content Include="Content\Admin\css\images\tableHeaderBackground.gif" /> <Content Include="Content\Admin\css\images\tableHeaderBackground.gif" />
<Content Include="Views\Admin\Footer.aspx" />
<Content Include="Views\Admin\Header.aspx" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Config\Diagnostics.config" /> <Content Include="Config\Diagnostics.config" />
@@ -176,8 +174,8 @@
<Content Include="Content\Images\title_background.gif" /> <Content Include="Content\Images\title_background.gif" />
<Content Include="Content\Site2.css" /> <Content Include="Content\Site2.css" />
<Content Include="Content\Site3.css" /> <Content Include="Content\Site3.css" />
<Content Include="Views\Admin\Head.aspx" /> <Content Include="Views\Shared\AdminHead.aspx" />
<Content Include="Views\Admin\Foot.aspx" /> <Content Include="Views\Shared\AdminFoot.aspx" />
<Content Include="Views\Admin\Messages.ascx" /> <Content Include="Views\Admin\Messages.ascx" />
<Content Include="Views\Shared\ExtraUserControl.ascx" /> <Content Include="Views\Shared\ExtraUserControl.ascx" />
<Content Include="Views\Shared\Footer.ascx" /> <Content Include="Views\Shared\Footer.ascx" />

View File

@@ -113,8 +113,6 @@
<Content Include="Views\Blog\DisplayTemplates\BlogsViewModel.ascx" /> <Content Include="Views\Blog\DisplayTemplates\BlogsViewModel.ascx" />
<Content Include="Views\Blog\EditorTemplates\CreateBlogViewModel.ascx" /> <Content Include="Views\Blog\EditorTemplates\CreateBlogViewModel.ascx" />
<Content Include="Views\Blog\Item.aspx" /> <Content Include="Views\Blog\Item.aspx" />
<Content Include="Views\Shared\Foot.aspx" />
<Content Include="Views\Shared\Head.aspx" />
<Content Include="Views\Shared\Messages.ascx" /> <Content Include="Views\Shared\Messages.ascx" />
<Content Include="Web.config" /> <Content Include="Web.config" />
<Content Include="Views\Web.config" /> <Content Include="Views\Web.config" />

View File

@@ -2,7 +2,7 @@
<%@ Import Namespace="Orchard.Blogs.Extensions"%> <%@ Import Namespace="Orchard.Blogs.Extensions"%>
<%@ Import Namespace="Orchard.Security" %> <%@ Import Namespace="Orchard.Security" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Create New Blog</h2> <h2>Create New Blog</h2>
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> &gt; Create Blog</p> <p><a href="<%=Url.Blogs() %>">Manage Blogs</a> &gt; Create Blog</p>
<% using (Html.BeginForm()) { %> <% using (Html.BeginForm()) { %>
@@ -10,4 +10,4 @@
<%=Html.EditorForModel() %> <%=Html.EditorForModel() %>
<fieldset><input class="button" type="submit" value="Create" /></fieldset> <fieldset><input class="button" type="submit" value="Create" /></fieldset>
<% } %> <% } %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -2,7 +2,7 @@
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ 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"%>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Edit Blog</h2> <h2>Edit Blog</h2>
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> &gt; Editing <strong><%=Html.Encode(Model.Name)%></strong></p> <p><a href="<%=Url.Blogs() %>">Manage Blogs</a> &gt; Editing <strong><%=Html.Encode(Model.Name)%></strong></p>
<% using (Html.BeginForm()) { %> <% using (Html.BeginForm()) { %>
@@ -10,4 +10,4 @@
<%=Html.EditorForModel() %> <%=Html.EditorForModel() %>
<fieldset><input class="button" type="submit" value="Save" /></fieldset> <fieldset><input class="button" type="submit" value="Save" /></fieldset>
<% } %> <% } %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,8 +3,8 @@
<%@ Import Namespace="Orchard.Blogs.Models"%> <%@ Import Namespace="Orchard.Blogs.Models"%>
<%@ Import Namespace="Orchard.Blogs.ViewModels"%> <%@ Import Namespace="Orchard.Blogs.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Manage Blogs</h2> <h2>Manage Blogs</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<%=Html.DisplayForModel() %> <%=Html.DisplayForModel() %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,11 +3,11 @@
<%@ Import Namespace="Orchard.Blogs.Extensions"%> <%@ Import Namespace="Orchard.Blogs.Extensions"%>
<%@ Import Namespace="Orchard.Security" %> <%@ Import Namespace="Orchard.Security" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Create a New Blog Post</h2> <h2>Create a New Blog Post</h2>
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> &gt; <a href="<%=Url.BlogEdit(Model.Blog.Slug) %>"><%=Html.Encode(Model.Blog.Name) %></a> &gt; Create Blog Post</p> <p><a href="<%=Url.Blogs() %>">Manage Blogs</a> &gt; <a href="<%=Url.BlogEdit(Model.Blog.Slug) %>"><%=Html.Encode(Model.Blog.Name) %></a> &gt; Create Blog Post</p>
<%using (Html.BeginForm()) { %> <%using (Html.BeginForm()) { %>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<%= Html.EditorForModel() %> <%= Html.EditorForModel() %>
<% } %> <% } %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -2,7 +2,7 @@
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ 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"%>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Edit Blog Post</h2> <h2>Edit Blog Post</h2>
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> &gt; <a href="<%=Url.BlogEdit(Model.Blog.Slug) %>"><%=Html.Encode(Model.Blog.Name)%></a> &gt; <a href="<%=Url.BlogPostEdit(Model.Blog.Slug, Model.Post.Slug) %>"><%=Model.Title %></a></p> <p><a href="<%=Url.Blogs() %>">Manage Blogs</a> &gt; <a href="<%=Url.BlogEdit(Model.Blog.Slug) %>"><%=Html.Encode(Model.Blog.Name)%></a> &gt; <a href="<%=Url.BlogPostEdit(Model.Blog.Slug, Model.Post.Slug) %>"><%=Model.Title %></a></p>
<% using (Html.BeginForm()) { %> <% using (Html.BeginForm()) { %>
@@ -18,4 +18,4 @@
<%=Html.EditorFor(m=>editor.Model, editor.TemplateName, editor.Prefix) %> <%=Html.EditorFor(m=>editor.Model, editor.TemplateName, editor.Prefix) %>
<% } %> <% } %>
<%} %> <%} %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -6,7 +6,8 @@
<%@ Import Namespace="Orchard.Blogs.Models"%> <%@ Import Namespace="Orchard.Blogs.Models"%>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<%@ Import Namespace="Orchard.Mvc.ViewModels"%> <%@ Import Namespace="Orchard.Mvc.ViewModels"%>
<% Html.Include("Header"); %> <%-- todo: (heskew) make master-less when we get into theming --%>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
<div class="yui-g"> <div class="yui-g">
<h2>Posts</h2><% <h2>Posts</h2><%
//TODO: (erikpo) Replace this with an Html extension method of some sort (ListForModel?) //TODO: (erikpo) Replace this with an Html extension method of some sort (ListForModel?)
@@ -18,4 +19,4 @@
</ul><% </ul><%
} %> } %>
</div> </div>
<% Html.Include("Footer"); %> </asp:Content>

View File

@@ -3,7 +3,7 @@
<%@ Import Namespace="Orchard.Utility"%> <%@ Import Namespace="Orchard.Utility"%>
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%> <%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Delete pages</h2> <h2>Delete pages</h2>
<p>Are you sure you want to delete the pages?</p> <p>Are you sure you want to delete the pages?</p>
<% using (Html.BeginForm()) { %> <% using (Html.BeginForm()) { %>
@@ -22,4 +22,4 @@
} %> } %>
</fieldset> </fieldset>
<% } %> <% } %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,7 +3,7 @@
<%@ Import Namespace="Orchard.Utility"%> <%@ Import Namespace="Orchard.Utility"%>
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%> <%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<% using (Html.BeginForm()) { %> <% using (Html.BeginForm()) { %>
<h2>Publish later</h2> <h2>Publish later</h2>
<p>Enter the scheduled publication date:</p> <p>Enter the scheduled publication date:</p>
@@ -22,4 +22,4 @@
} %> } %>
</fieldset> </fieldset>
<% } %> <% } %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,7 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.ChooseTemplateViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.ChooseTemplateViewModel>" %>
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%> <%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Change Template</h2> <h2>Change Template</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()) {
@@ -20,4 +20,4 @@
<%=Html.ActionLink("Cancel", "Edit", new { Id = ViewContext.RouteData.GetRequiredString("id") }, new { @class = "cancel" })%> <%=Html.ActionLink("Cancel", "Edit", new { Id = ViewContext.RouteData.GetRequiredString("id") }, new { @class = "cancel" })%>
</div><% </div><%
} %> } %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,10 +1,10 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageCreateViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageCreateViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<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() %>
<% } %> <% } %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,7 +1,7 @@
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageEditViewModel>" %> <%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageEditViewModel>" %>
<%@ Import Namespace="Orchard.CmsPages.Models" %> <%@ Import Namespace="Orchard.CmsPages.Models" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2><%=_Encoded("Edit Page") %></h2> <h2><%=_Encoded("Edit Page") %></h2>
<p class="bottomSpacer"><%=_Encoded("about setting up a page") %></p> <p class="bottomSpacer"><%=_Encoded("about setting up a page") %></p>
<%=Html.ValidationSummary() %> <%=Html.ValidationSummary() %>
@@ -47,4 +47,4 @@
</div> </div>
<% } %> <% } %>
</div> </div>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,6 +1,6 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Orchard.CmsPages.Models.Page>>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Orchard.CmsPages.Models.Page>>" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Export</h2> <h2>Export</h2>
<p>Possible text about setting up a page goes here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla erat turpis, blandit eget feugiat nec, tempus vel quam. Mauris et neque eget justo suscipit blandit.</p> <p>Possible text about setting up a page goes here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla erat turpis, blandit eget feugiat nec, tempus vel quam. Mauris et neque eget justo suscipit blandit.</p>
<ol> <ol>
@@ -16,4 +16,4 @@
</li><% </li><%
} %> } %>
</ol> </ol>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,7 +3,7 @@
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%> <%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<%-- todo: (heskew) localize --%> <%-- todo: (heskew) localize --%>
<% Html.Include("Head"); %> <% Html.Include("AdminHead"); %>
<h2>Manage Pages</h2> <h2>Manage Pages</h2>
<p>Possible text about setting up a page goes here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla erat turpis, blandit eget feugiat nec, tempus vel quam. Mauris et neque eget justo suscipit blandit.</p> <p>Possible text about setting up a page goes here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla erat turpis, blandit eget feugiat nec, tempus vel quam. Mauris et neque eget justo suscipit blandit.</p>
<% using (Html.BeginForm()) { %> <% using (Html.BeginForm()) { %>
@@ -97,4 +97,4 @@
</fieldset> </fieldset>
<div class="manage"><%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button"}) %></div> <div class="manage"><%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button"}) %></div>
<% } %> <% } %>
<% Html.Include("Foot"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,7 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsCreateViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsCreateViewModel>" %>
<%@ Import Namespace="Orchard.Comments.ViewModels"%> <%@ Import Namespace="Orchard.Comments.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<div class="yui-g"> <div class="yui-g">
@@ -32,4 +32,4 @@
</ol> </ol>
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -2,7 +2,7 @@
<%@ Import Namespace="Orchard.Comments.Models"%> <%@ Import Namespace="Orchard.Comments.Models"%>
<%@ Import Namespace="Orchard.Comments.ViewModels"%> <%@ Import Namespace="Orchard.Comments.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<div class="yui-g"> <div class="yui-g">
<h2 class="separator">Comments for <%= Model.DisplayNameForCommentedItem %></h2> <h2 class="separator">Comments for <%= Model.DisplayNameForCommentedItem %></h2>
@@ -96,4 +96,4 @@
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -2,7 +2,7 @@
<%@ Import Namespace="Orchard.Comments.Models"%> <%@ Import Namespace="Orchard.Comments.Models"%>
<%@ Import Namespace="Orchard.Comments.ViewModels"%> <%@ Import Namespace="Orchard.Comments.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<div class="yui-g"> <div class="yui-g">
@@ -45,4 +45,4 @@
</ol> </ol>
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -2,89 +2,81 @@
<%@ Import Namespace="Orchard.Comments.Models"%> <%@ Import Namespace="Orchard.Comments.Models"%>
<%@ Import Namespace="Orchard.Comments.ViewModels"%> <%@ Import Namespace="Orchard.Comments.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<h2>Manage Comments</h2>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<div class="yui-g"> <%=Html.ValidationSummary() %>
<h2 class="separator">Manage Comments</h2> <fieldset class="actions bulk">
<%=Html.ValidationSummary() %> <label for="publishActions">Actions: </label>
<ol class="horizontal actions floatLeft"> <select id="publishActions" name="<%=Html.NameOf(m => m.Options.BulkAction)%>">
<li> <%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.None, "Choose action...")%>
<label class="floatLeft" for="publishActions"> Actions:</label> <%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Delete, "Delete")%>
<select id="publishActions" name="<%=Html.NameOf(m => m.Options.BulkAction)%>"> <%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.MarkAsSpam, "Mark as Spam")%>
<%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.None, "Choose action...")%> </select>
<%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Delete, "Delete")%> <input class="button" type="submit" name="submit.BulkEdit" value="Apply" />
<%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.MarkAsSpam, "Mark as Spam")%> </fieldset>
</select> <fieldset class="actions bulk">
</li> <label for="filterResults">Filter: </label>
<li> <select id="filterResults" name="<%=Html.NameOf(m => m.Options.Filter)%>">
<input class="button roundCorners" type="submit" name="submit.BulkEdit" value="Apply" /> <%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.All, "All Comments")%>
</li> <%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Approved, "Approved Comments")%>
</ol> <%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Spam, "Spam")%>
<ol class="horizontal actions"> </select>
<li> <input class="button" type="submit" name="submit.Filter" value="Filter"/>
<label class="floatLeft" for="filterResults"></label> </fieldset>
<select id="filterResults" name="<%=Html.NameOf(m => m.Options.Filter)%>"> <fieldset>
<%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.All, "All Comments")%> <table summary="This is a table of the comments in your application">
<%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Approved, "Approved Comments")%> <colgroup>
<%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Spam, "Spam")%> <col id="Col1" />
</select> <col id="Col2" />
</li> <col id="Col3" />
<li> <col id="Col4" />
<input class="button roundCorners" type="submit" name="submit.Filter" value="Filter"/> <col id="Col5" />
</li> <col id="Col6" />
</ol> <col id="Col7" />
<table id="Table1" cellspacing="0" class="roundCorners clearLayout" summary="This is a table of the comments in your application"> </colgroup>
<colgroup> <thead>
<col id="Col1" /> <tr>
<col id="Col2" /> <th scope="col">&nbsp;&darr;<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
<col id="Col3" /> <th scope="col">Status</th>
<col id="Col4" /> <th scope="col">Author</th>
<col id="Col5" /> <th scope="col">Comment</th>
<col id="Col6" /> <th scope="col">Date</th>
<col id="Col7" /> <th scope="col">Commented On</th>
</colgroup> <th scope="col"></th>
<thead> </tr>
<tr> </thead>
<th scope="col"><%--<input type="checkbox" value="" />--%></th> <%
<th scope="col">Status</th> int commentIndex = 0;
<th scope="col">Author</th> foreach (var commentEntry in Model.Comments) {
<th scope="col">Comment</th> %>
<th scope="col">Date</th> <tr>
<th scope="col">Commented On</th> <td>
<th scope="col"></th> <input type="hidden" value="<%=Model.Comments[commentIndex].Comment.Id%>" name="<%=Html.NameOf(m => m.Comments[commentIndex].Comment.Id)%>"/>
</tr> <input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Comments[commentIndex].IsChecked)%>"/>
</thead> </td>
<% <td><% if (commentEntry.Comment.Status == CommentStatus.Spam) {%> Spam <% } %>
int commentIndex = 0; <% else {%> Approved <% } %>
foreach (var commentEntry in Model.Comments) { </td>
%> <td><%= commentEntry.Comment.UserName %></td>
<tr> <td>
<td> <% if (commentEntry.Comment.CommentText != null) {%>
<input type="hidden" value="<%=Model.Comments[commentIndex].Comment.Id%>" name="<%=Html.NameOf(m => m.Comments[commentIndex].Comment.Id)%>"/> <%= commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %> ...
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Comments[commentIndex].IsChecked)%>"/> <% } %>
</td> </td>
<td><% if (commentEntry.Comment.Status == CommentStatus.Spam) {%> Spam <% } %> <td><%= commentEntry.Comment.CommentDate %></td>
<% else {%> Approved <% } %> <td>
</td> <%=Html.ActionLink(commentEntry.CommentedOn, "Details", new {id = commentEntry.Comment.CommentedOn}) %>
<td><%= commentEntry.Comment.UserName %></td> </td>
<td> <td>
<% if (commentEntry.Comment.CommentText != null) {%> <%=Html.ActionLink("Edit", "Edit", new {commentEntry.Comment.Id}) %> |
<%= commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %> ... <%=Html.ActionLink("Delete", "Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Index"}) %>
<% } %> </td>
</td> </tr>
<td><%= commentEntry.Comment.CommentDate %></td> <%
<td> commentIndex++;
<%=Html.ActionLink(commentEntry.CommentedOn, "Details", new {id = commentEntry.Comment.CommentedOn}) %> } %>
</td> </table>
<td> </fieldset>
<%=Html.ActionLink("Edit", "Edit", new {commentEntry.Comment.Id}) %> |
<%=Html.ActionLink("Delete", "Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Index"}) %>
</td>
</tr>
<%
commentIndex++;
} %>
</table>
</div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,7 +3,7 @@
<%@ Import Namespace="Orchard.Media.Models"%> <%@ Import Namespace="Orchard.Media.Models"%>
<%@ Import Namespace="Orchard.Media.ViewModels"%> <%@ Import Namespace="Orchard.Media.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<div class="yui-g"> <div class="yui-g">
<h2 class="separator">Add Media </h2> <h2 class="separator">Add Media </h2>
<p class="bottomSpacer"> <p class="bottomSpacer">
@@ -30,4 +30,4 @@
<% } %> <% } %>
</div> </div>
</div> </div>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,7 +3,7 @@
<%@ Import Namespace="Orchard.Media.Helpers"%> <%@ Import Namespace="Orchard.Media.Helpers"%>
<%@ Import Namespace="Orchard.Media.ViewModels"%> <%@ Import Namespace="Orchard.Media.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<div class="yui-g"> <div class="yui-g">
<h2 class="separator">Add a New Folder</h2> <h2 class="separator">Add a New Folder</h2>
<p class="bottomSpacer"> <p class="bottomSpacer">
@@ -27,4 +27,4 @@
</ol> </ol>
<%}%> <%}%>
</div> </div>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,7 +3,7 @@
<%@ Import Namespace="Orchard.Media.Helpers"%> <%@ Import Namespace="Orchard.Media.Helpers"%>
<%@ Import Namespace="Orchard.Media.ViewModels"%> <%@ Import Namespace="Orchard.Media.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<div class="yui-g"> <div class="yui-g">
<h2 class="separator">Manage Folder</h2> <h2 class="separator">Manage Folder</h2>
@@ -92,4 +92,4 @@
</table> </table>
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,7 +3,7 @@
<%@ Import Namespace="Orchard.Media.Helpers"%> <%@ Import Namespace="Orchard.Media.Helpers"%>
<%@ Import Namespace="Orchard.Media.ViewModels"%> <%@ Import Namespace="Orchard.Media.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<div class="yui-g"> <div class="yui-g">
<h2 class="separator">Edit Media - <%= Model.Name %></h2> <h2 class="separator">Edit Media - <%= Model.Name %></h2>
<p class="bottomSpacer"> <p class="bottomSpacer">
@@ -74,4 +74,4 @@
</fieldset> </fieldset>
</div> </div>
</div> </div>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -3,7 +3,7 @@
<%@ Import Namespace="Orchard.Media.Helpers"%> <%@ Import Namespace="Orchard.Media.Helpers"%>
<%@ Import Namespace="Orchard.Media.ViewModels"%> <%@ Import Namespace="Orchard.Media.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<div class="yui-g"> <div class="yui-g">
<h2 class="separator">Folder Properties</h2> <h2 class="separator">Folder Properties</h2>
<p class="bottomSpacer"> <p class="bottomSpacer">
@@ -29,4 +29,4 @@
</ol> </ol>
<%}%> <%}%>
</div> </div>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,13 +1,11 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MediaFolderIndexViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MediaFolderIndexViewModel>" %>
<%@ Import Namespace="Orchard.Media.ViewModels"%> <%@ Import Namespace="Orchard.Media.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<h2>Manage Media Folders</h2>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<div class="yui-g"> <p><%=Html.ActionLink("Media Folders", "Index")%> &#62; Manage Media Folders</p>
<h2 class="separator">Manage Media Folders</h2> <%=Html.ValidationSummary() %>
<p class="bottomSpacer">
<%=Html.ActionLink("Media Folders", "Index")%> &#62;
Manage Media Folders</p>
<ol class="horizontal actions floatLeft"> <ol class="horizontal actions floatLeft">
<li><label class="floatLeft" for="bulkActions">Actions:</label> <li><label class="floatLeft" for="bulkActions">Actions:</label>
<select id="Select1" name="publishActions"> <select id="Select1" name="publishActions">
@@ -55,4 +53,4 @@
</table> </table>
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,7 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<RoleCreateViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<RoleCreateViewModel>" %>
<%@ Import Namespace="Orchard.Roles.ViewModels"%> <%@ Import Namespace="Orchard.Roles.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<div class="yui-g"> <div class="yui-g">
@@ -37,4 +37,4 @@
<input type="submit" class="button" value="Save" /> <input type="submit" class="button" value="Save" />
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,7 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<RoleEditViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<RoleEditViewModel>" %>
<%@ Import Namespace="Orchard.Roles.ViewModels"%> <%@ Import Namespace="Orchard.Roles.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<div class="yui-g"> <div class="yui-g">
@@ -43,4 +43,4 @@
<input type="submit" class="button" name="submit.Delete" value="Delete" /> <input type="submit" class="button" name="submit.Delete" value="Delete" />
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,6 +1,6 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Roles.ViewModels.RolesIndexViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Roles.ViewModels.RolesIndexViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<div class="yui-g"> <div class="yui-g">
<h2 class="separator">Manage Roles</h2> <h2 class="separator">Manage Roles</h2>
@@ -39,4 +39,4 @@
</table> </table>
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,14 +1,14 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsAdminCreateViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsAdminCreateViewModel>" %>
<%@ Import Namespace="Orchard.Tags.ViewModels"%> <%@ Import Namespace="Orchard.Tags.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<h2>Add a Tag</h2>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<div class="yui-g"> <fieldset>
<h2 class="separator">Add a Tag</h2> <label for="TagName">Name:</label>
<label for="TagName">Name:</label> <input id="TagName" class="text" name="TagName" type="text" value="<%= Model.TagName %>" />
<input id="TagName" class="inputText inputTextLarge" name="TagName" type="text" value="<%= Model.TagName %>" /> <input type="submit" class="button" value="Save" />
<input type="submit" class="button" value="Save" /> </fieldset>
</div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,22 +1,15 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsAdminEditViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsAdminEditViewModel>" %>
<%@ Import Namespace="Orchard.Tags.ViewModels"%> <%@ Import Namespace="Orchard.Tags.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<h2>Edit a Tag</h2>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<div class="yui-g"> <fieldset>
<h2 class="separator">Edit a Tag</h2> <label for="Name">Name:</label>
<h3>Information</h3> <input id="Id" name="Id" type="hidden" value="<%=Model.Id %>" />
<ol> <input id="TagName" class="text" name="TagName" type="text" value="<%= Model.TagName %>" />
<li> <input type="submit" class="button" value="Save" />
<label for="Name">Name:</label> </fieldset>
<input id="Id" name="Id" type="hidden" value="<%=Model.Id %>" />
<input id="TagName" class="inputText inputTextLarge" name="TagName" type="text" value="<%= Model.TagName %>" />
</li>
<li>
<input type="submit" class="button" value="Save" />
</li>
</ol>
</div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,57 +1,52 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsAdminIndexViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsAdminIndexViewModel>" %>
<%@ Import Namespace="Orchard.Tags.ViewModels"%> <%@ Import Namespace="Orchard.Tags.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<h2>Manage Tags</h2>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<div class="yui-g"> <%=Html.ValidationSummary() %>
<h2 class="separator">Manage Tags</h2> <fieldset class="actions bulk">
<%=Html.ValidationSummary() %> <label for="publishActions">Actions: </label>
<ol class="horizontal actions floatLeft"> <select id="publishActions" name="<%=Html.NameOf(m => m.BulkAction)%>">
<li> <%=Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.None, "Choose action...")%>
<label class="floatLeft" for="publishActions"> Actions:</label> <%=Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.Delete, "Delete")%>
<select id="publishActions" name="<%=Html.NameOf(m => m.BulkAction)%>"> </select>
<%=Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.None, "Choose action...")%> <input class="button roundCorners" type="submit" name="submit" value="Apply" />
<%=Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.Delete, "Delete")%> </fieldset>
</select> <div class="manage"><%=Html.ActionLink("Add a tag", "Create", new { }, new { @class = "button" })%></div>
</li> <fieldset>
<li> <table summary="This is a table of the tags in your application">
<input class="button roundCorners" type="submit" name="submit" value="Apply" /> <colgroup>
</li> <col id="Col1" />
</ol> <col id="Col2" />
<span class="filterActions"> <col id="Col3" />
<%=Html.ActionLink("Add a new tag", "Create") %> </colgroup>
</span> <thead>
<table id="Table1" cellspacing="0" class="roundCorners clearLayout" summary="This is a table of the tags in your application"> <tr>
<colgroup> <th scope="col">&nbsp;&darr;<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
<col id="Col1" /> <th scope="col">Name</th>
<col id="Col2" /> <th scope="col"></th>
<col id="Col3" /> </tr>
</colgroup> </thead>
<thead> <%
<tr> int tagIndex = 0;
<th scope="col"><%--<input type="checkbox" value="" />--%></th> foreach (var tagEntry in Model.Tags) {
<th scope="col">Name</th> %>
<th scope="col"></th> <tr>
</tr> <td>
</thead> <input type="hidden" value="<%=Model.Tags[tagIndex].Tag.Id%>" name="<%=Html.NameOf(m => m.Tags[tagIndex].Tag.Id)%>"/>
<% <input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Tags[tagIndex].IsChecked)%>"/>
int tagIndex = 0; </td>
foreach (var tagEntry in Model.Tags) { <td>
%> <%=Html.ActionLink(tagEntry.Tag.TagName, "Search", new {id = tagEntry.Tag.Id}) %>
<tr> </td>
<td> <td>
<input type="hidden" value="<%=Model.Tags[tagIndex].Tag.Id%>" name="<%=Html.NameOf(m => m.Tags[tagIndex].Tag.Id)%>"/> <%=Html.ActionLink("Edit", "Edit", new {id = tagEntry.Tag.Id}) %>
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Tags[tagIndex].IsChecked)%>"/> </td>
</td> </tr>
<td> <% tagIndex++; } %>
<%=Html.ActionLink(tagEntry.Tag.TagName, "Search", new {id = tagEntry.Tag.Id}) %> </table>
</td> </fieldset>
<td> <div class="manage"><%=Html.ActionLink("Add a tag", "Create", new { }, new { @class = "button" })%></div>
<%=Html.ActionLink("Edit", "Edit", new {id = tagEntry.Tag.Id}) %>
</td>
</tr>
<% tagIndex++; } %>
</table>
</div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -2,7 +2,7 @@
<%@ Import Namespace="Orchard.Models"%> <%@ Import Namespace="Orchard.Models"%>
<%@ Import Namespace="Orchard.Tags.ViewModels"%> <%@ Import Namespace="Orchard.Tags.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html"%> <%@ Import Namespace="Orchard.Mvc.Html"%>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<div class="yui-g"> <div class="yui-g">
<h2 class="separator">List of contents tagged with <%= Model.TagName %></h2> <h2 class="separator">List of contents tagged with <%= Model.TagName %></h2>
@@ -31,4 +31,4 @@
</table> </table>
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,7 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Users.ViewModels.UserCreateViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Users.ViewModels.UserCreateViewModel>" %>
<%@ Import Namespace="Orchard.Security" %> <%@ Import Namespace="Orchard.Security" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<div class="yui-u"> <div class="yui-u">
<h2 class="separator"> <h2 class="separator">
Add a new User</h2> Add a new User</h2>
@@ -18,4 +18,4 @@
</ol> </ol>
<%}/*EndForm*/%> <%}/*EndForm*/%>
</div> </div>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,7 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Users.ViewModels.UserEditViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Users.ViewModels.UserEditViewModel>" %>
<%@ Import Namespace="Orchard.Security" %> <%@ Import Namespace="Orchard.Security" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<div class="yui-u"> <div class="yui-u">
<h2 class="separator"> <h2 class="separator">
Edit User</h2> Edit User</h2>
@@ -21,4 +21,4 @@
</ol> </ol>
<%}/*EndForm*/%> <%}/*EndForm*/%>
</div> </div>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -2,7 +2,7 @@
<%@ Import Namespace="Orchard.Models"%> <%@ Import Namespace="Orchard.Models"%>
<%@ Import Namespace="Orchard.Security" %> <%@ Import Namespace="Orchard.Security" %>
<%@ Import Namespace="Orchard.Mvc.Html" %> <%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %> <% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %> <% Html.BeginForm(); %>
<div class="yui-g"> <div class="yui-g">
<h2> <h2>
@@ -44,4 +44,4 @@
</table> </table>
</div> </div>
<% Html.EndForm(); %> <% Html.EndForm(); %>
<% Html.Include("Footer"); %> <% Html.Include("AdminFoot"); %>

View File

@@ -1,19 +0,0 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<AdminViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
</div><%-- .wrapper --%>
</div><%-- #main --%>
<ul id="navigation" role="navigation">
<li class="first"><h4>Dashboard</h4></li>
<%if (Model.AdminMenu != null) {
foreach (var menuSection in Model.AdminMenu) {%>
<li><h4><%=Html.Encode(menuSection.Text)%></h4><ul><%foreach (var menuItem in menuSection.Items) { %>
<li><%=Html.ActionLink(menuItem.Text, (string)menuItem.RouteValues["action"], menuItem.RouteValues)%></li>
<%} %></ul></li>
<%
}
}%>
</ul>
</div><%-- #content --%>
<div id="footer" role="contentinfo"></div><%-- #contentinfo --%>
</body>
</html>

View File

@@ -1,24 +0,0 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<AdminViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
</div><%-- yui-b --%>
</div><%-- yui-main --%>
<%-- Navigation --%>
<div class="yui-b">
<div class="leftNavMod">
<h4>Dashboard</h4>
</div>
<%if (Model.AdminMenu != null) {
foreach (var menuSection in Model.AdminMenu) {%>
<div class="leftNavMod"><h4><%=Html.Encode(menuSection.Text)%></h4><ul><%foreach (var menuItem in menuSection.Items) { %>
<li><%=Html.ActionLink(menuItem.Text, (string)menuItem.RouteValues["action"], menuItem.RouteValues)%></li>
<%} %></ul></div>
<%
}
}%>
</div>
</div><%-- bd --%>
<div id="ft" role="contentinfo">
</div>
</div><%-- yui-t2 --%>
</body>
</html>

View File

@@ -1,45 +0,0 @@
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<AdminViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels" %>
<%@ Import Namespace="Orchard.Mvc.Html"
%><%--
todo: (heskew) rework how/what pages are assembled when we get into theming --%><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<%-- todo: (heskew) get this from the menu system
--%><title>Admin :: Orchard</title>
<%-- todo: (heskew) same as scripts [below]
--%><link href="<%=Page.ResolveClientUrl("~/Content/Admin/css/base.css") %>" rel="stylesheet" type="text/css" />
<%-- todo: (heskew) this should come from the admin "page" (partial)
todo: (heskew) should have at the minimum something like, say, includeScript(scriptName[, releaseScriptName], scriptPath[, releaseScriptPath])
--%><script src="<%=Page.ResolveClientUrl("~/Scripts/jquery-1.3.2.js") %>" type="text/javascript"></script>
<%-- todo: (heskew) this should come from the admin "page" (partial)
todo: (heskew) use the TinyMCE jQuery package instead?
--%><script type="text/javascript" src="<%=ResolveUrl("~/Packages/TinyMce/Scripts/tiny_mce.js") %>"></script>
<script type="text/javascript">
tinyMCE.init({
theme: "advanced",
mode: "specific_textareas",
editor_selector: "html",
plugins: "fullscreen,autoresize,searchreplace",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_buttons1: "search,replace,|,cut,copy,paste,|,undo,redo,|,image,|,link,unlink,charmap,emoticon,codeblock,|,bold,italic,|,numlist,bullist,formatselect,|,code,fullscreen",
theme_advanced_buttons2: "",
theme_advanced_buttons3: ""
});
</script>
</head>
<body>
<div id="header" role="banner">
<h1><%=Html.ActionLink(T("Project Orchard").ToString(), "Index", new { Area = "", Controller = "Home" })%></h1>
<div id="site"><%=Html.ActionLink(T("Your Site").ToString(), "Index", new { Area = "", Controller = "Home" })%></div>
<% if (Model.CurrentUser != null) { //todo: (heskew) localize the string format "User: <username> | a:logoff"
%><div id="login"><%=T("User")%>: <%=H(Model.CurrentUser.UserName)%> | <%=Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "", Controller = "Account" }) %></div><%
} %>
</div>
<div id="content">
<div id="navshortcut"><a href="#navigation"><%=T("Skip to navigation") %></a></div>
<div id="main" role="main">
<div class="wrapper">
<% Html.RenderPartial("Messages", Model.Messages); %>

View File

@@ -1,40 +0,0 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<AdminViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels"
%><!DOCTYPE html>
<html>
<head>
<title>Admin :: Orchard</title>
<link href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" rel="stylesheet" type="text/css" />
<%-- todo: (heskew) same as scripts [below] --%>
<link href="<%=Page.ResolveClientUrl("~/Content/Admin/css/Site.css") %>" rel="stylesheet" type="text/css" />
<%-- todo: (heskew) this should come from the admin "page" (partial) --%>
<%-- todo: (heskew) should have at the minimum something like, say, includeScript(scriptName[, releaseScriptName], scriptPath[, releaseScriptPath]) --%>
<script src="<%=Page.ResolveClientUrl("~/Scripts/jquery-1.3.2.js") %>" type="text/javascript"></script>
<%-- todo: (heskew) this should come from the admin "page" (partial) --%>
<script type="text/javascript" src="<%=ResolveUrl("~/Packages/TinyMce/Scripts/tiny_mce.js") %>"></script>
<script type="text/javascript">tinyMCE.init({ theme: "advanced", mode: "textareas", plugins: "fullscreen,autoresize", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", theme_advanced_buttons3_add: "fullscreen" });</script>
</head>
<body>
<div id="doc3" class="yui-t2">
<div id="hd" role="banner">
<div class="yui-g">
<div class="yui-u first">
<h1>
<a href="<%=Url.Action("Index", new{Area="",Controller="Home"}) %>"><span class="displayText">
Project Orchard</span></a></h1>
<%= Html.ActionLink("Your Site", "Index", new { Area = "", Controller = "Home" })%>
</div>
<div class="yui-u">
<% if (Model.CurrentUser != null) { %>
<div id="login">
User:
<%=Model.CurrentUser.UserName%>
| <%=Html.ActionLink("Logout", "LogOff", "Account", new {}, new{area=""})%></div>
<%} %>
</div>
</div>
</div>
<div id="bd" role="main">
<div id="yui-main">
<div class="yui-b">
<% Html.RenderPartial("Messages", Model.Messages); %>