mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 13:22:08 +08:00
- Some AntiForgeryToken work including making used of SiteSalt
- Moving all* BeginForm usage to BeginFormAntiForgeryPost *except for "complicated" BeginForms that get an AntiForgeryTokenOrchard inserted manually - Some page title cleanup (mainly in the admin) --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044508
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
using System.Web.Mvc;
|
||||||
|
using Orchard.ContentManagement;
|
||||||
|
using Orchard.Core.Settings.Models;
|
||||||
|
using Orchard.Mvc.Filters;
|
||||||
|
using Orchard.Settings;
|
||||||
|
|
||||||
|
namespace Orchard.Core.Common.Mvc.Filters {
|
||||||
|
public class AntiForgeryAuthorizationFilter : FilterProvider, IAuthorizationFilter {
|
||||||
|
private readonly ISiteService _siteService;
|
||||||
|
|
||||||
|
public AntiForgeryAuthorizationFilter(ISiteService siteService) {
|
||||||
|
_siteService = siteService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnAuthorization(AuthorizationContext filterContext) {
|
||||||
|
if (!(filterContext.HttpContext.Request.HttpMethod == "POST" && filterContext.RequestContext.HttpContext.Request.IsAuthenticated))
|
||||||
|
return;
|
||||||
|
|
||||||
|
var siteSalt = _siteService.GetSiteSettings().ContentItem.As<SiteSettings>().Record.SiteSalt;
|
||||||
|
ValidateAntiForgeryTokenAttribute validator = new ValidateAntiForgeryTokenAttribute { Salt = siteSalt };
|
||||||
|
|
||||||
|
validator.OnAuthorization(filterContext);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Web.Mvc;
|
||||||
|
using Orchard.ContentManagement;
|
||||||
|
using Orchard.Core.Settings.Models;
|
||||||
|
using Orchard.Mvc.Html;
|
||||||
|
using Orchard.Settings;
|
||||||
|
|
||||||
|
namespace Orchard.Core.Common.Mvc.Html {
|
||||||
|
public static class AntiForgeryTokenExtensions {
|
||||||
|
public static MvcHtmlString AntiForgeryTokenOrchard(this HtmlHelper htmlHelper)
|
||||||
|
{
|
||||||
|
var siteSalt = htmlHelper.Resolve<ISiteService>().GetSiteSettings().ContentItem.As<SiteSettings>().Record.SiteSalt;
|
||||||
|
return htmlHelper.AntiForgeryToken(siteSalt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
35
src/Orchard.Web/Core/Common/Mvc/Html/BeginFormExtensions.cs
Normal file
35
src/Orchard.Web/Core/Common/Mvc/Html/BeginFormExtensions.cs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Web.Mvc;
|
||||||
|
using System.Web.Mvc.Html;
|
||||||
|
using System.Web.Routing;
|
||||||
|
|
||||||
|
namespace Orchard.Core.Common.Mvc.Html {
|
||||||
|
public static class BeginFormExtensions {
|
||||||
|
public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper)
|
||||||
|
{
|
||||||
|
return htmlHelper.BeginFormAntiForgeryPost(htmlHelper.ViewContext.HttpContext.Request.RawUrl, FormMethod.Post, new RouteValueDictionary());
|
||||||
|
}
|
||||||
|
//TODO: (erikpo) Uncomment when needed (not currently needed)
|
||||||
|
//public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction) {
|
||||||
|
// return htmlHelper.BeginFormAntiForgeryPost(formAction, FormMethod.Post, new RouteValueDictionary());
|
||||||
|
//}
|
||||||
|
//public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction, FormMethod formMethod) {
|
||||||
|
// return htmlHelper.BeginFormAntiForgeryPost(formAction, formMethod, new RouteValueDictionary());
|
||||||
|
//}
|
||||||
|
//public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction, FormMethod formMethod, object htmlAttributes) {
|
||||||
|
// return htmlHelper.BeginFormAntiForgeryPost(formAction, formMethod, new RouteValueDictionary(htmlAttributes));
|
||||||
|
//}
|
||||||
|
public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction, FormMethod formMethod, IDictionary<string, object> htmlAttributes)
|
||||||
|
{
|
||||||
|
TagBuilder tagBuilder = new TagBuilder("form");
|
||||||
|
|
||||||
|
tagBuilder.MergeAttributes(htmlAttributes);
|
||||||
|
tagBuilder.MergeAttribute("action", formAction);
|
||||||
|
tagBuilder.MergeAttribute("method", HtmlHelper.GetFormMethodString(formMethod), true);
|
||||||
|
|
||||||
|
htmlHelper.ViewContext.HttpContext.Response.Output.Write(tagBuilder.ToString(TagRenderMode.StartTag));
|
||||||
|
|
||||||
|
return new MvcFormAntiForgeryPost(htmlHelper);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
using System.Web.Mvc.Html;
|
using System.Web.Mvc.Html;
|
||||||
|
|
||||||
namespace Orchard.Mvc.Html {
|
namespace Orchard.Core.Common.Mvc.Html {
|
||||||
public class MvcFormAntiForgeryPost : MvcForm {
|
public class MvcFormAntiForgeryPost : MvcForm {
|
||||||
private readonly HtmlHelper _htmlHelper;
|
private readonly HtmlHelper _htmlHelper;
|
||||||
|
|
||||||
@@ -62,6 +62,10 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Common\Mvc\Filters\AdminFilter.cs" />
|
<Compile Include="Common\Mvc\Filters\AdminFilter.cs" />
|
||||||
|
<Compile Include="Common\Mvc\Filters\AntiForgeryAuthorizationFilter.cs" />
|
||||||
|
<Compile Include="Common\Mvc\Html\AntiForgeryTokenExtensions.cs" />
|
||||||
|
<Compile Include="Common\Mvc\Html\BeginFormExtensions.cs" />
|
||||||
|
<Compile Include="Common\Mvc\Html\MvcFormAntiForgeryPost.cs" />
|
||||||
<Compile Include="Common\Permissions.cs" />
|
<Compile Include="Common\Permissions.cs" />
|
||||||
<Compile Include="Common\Utilities\LazyField.cs" />
|
<Compile Include="Common\Utilities\LazyField.cs" />
|
||||||
<Compile Include="Common\Providers\CommonAspectHandler.cs" />
|
<Compile Include="Common\Providers\CommonAspectHandler.cs" />
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Orchard.Core.Settings.Records {
|
namespace Orchard.Core.Settings.Records {
|
||||||
public class SiteSettingsRecord : ContentPartRecord {
|
public class SiteSettingsRecord : ContentPartRecord {
|
||||||
|
public virtual string SiteSalt { get; set; }
|
||||||
public virtual string SiteUrl { get; set; }
|
public virtual string SiteUrl { get; set; }
|
||||||
public virtual string SiteName { get; set; }
|
public virtual string SiteName { get; set; }
|
||||||
public virtual string SuperUser { get; set; }
|
public virtual string SuperUser { get; set; }
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System.Linq;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using Orchard.Core.Settings.Models;
|
using Orchard.Core.Settings.Models;
|
||||||
using Orchard.Core.Settings.Records;
|
using Orchard.Core.Settings.Records;
|
||||||
using Orchard.Data;
|
using Orchard.Data;
|
||||||
@@ -27,8 +28,9 @@ namespace Orchard.Core.Settings.Services {
|
|||||||
SiteSettingsRecord record = _siteSettingsRepository.Fetch(x => x.SiteUrl == applicationPath).FirstOrDefault();
|
SiteSettingsRecord record = _siteSettingsRepository.Fetch(x => x.SiteUrl == applicationPath).FirstOrDefault();
|
||||||
if (record == null) {
|
if (record == null) {
|
||||||
ISite site = _contentManager.Create<SiteSettings>("site", item => {
|
ISite site = _contentManager.Create<SiteSettings>("site", item => {
|
||||||
item.Record.SiteName = "My Orchard Project Application";
|
item.Record.SiteSalt = Guid.NewGuid().ToString("N");
|
||||||
item.Record.SiteUrl = applicationPath;
|
item.Record.SiteUrl = applicationPath;
|
||||||
|
item.Record.SiteName = "My Orchard Project Application";
|
||||||
item.Record.PageTitleSeparator = " - ";
|
item.Record.PageTitleSeparator = " - ";
|
||||||
});
|
});
|
||||||
return site;
|
return site;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ 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" %>
|
|
||||||
<h2><%=Html.TitleForPage("Edit Settings")%></h2>
|
<h2><%=Html.TitleForPage("Edit Settings")%></h2>
|
||||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%= Html.ValidationSummary() %>
|
<%= Html.ValidationSummary() %>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<ThemesIndexViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<ThemesIndexViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Core.Themes.ViewModels"%>
|
<%@ Import Namespace="Orchard.Core.Themes.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
<h2><%=Html.TitleForPage("Manage Themes") %></h2>
|
||||||
<h2>Manage Themes</h2>
|
|
||||||
<h3>Current Theme</h3>
|
<h3>Current Theme</h3>
|
||||||
<% if (Model.CurrentTheme == null) {
|
<% if (Model.CurrentTheme == null) {
|
||||||
%><p>There is no current theme in the application. The built-in theme will be used.<br /><%=Html.ActionLink("Install a new Theme", "Install") %></p><%
|
%><p>There is no current theme in the application. The built-in theme will be used.<br /><%=Html.ActionLink("Install a new Theme", "Install") %></p><%
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
<h2><%=Html.TitleForPage("Install Theme") %></h2>
|
||||||
<h2>Install Theme</h2>
|
|
||||||
<% using (Html.BeginForm("Install", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) {%>
|
<% using (Html.BeginForm("Install", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) {%>
|
||||||
<%= Html.ValidationSummary() %>
|
<%= Html.ValidationSummary() %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="pageTitle">File Path to the zip file:</label>
|
<label for="pageTitle">File Path to the zip file:</label>
|
||||||
<input id="ThemeZipPath" name="ThemeZipPath" type="file" class="text" value="Browse" size="64"/><br />
|
<input id="ThemeZipPath" name="ThemeZipPath" type="file" class="text" value="Browse" size="64"/><br />
|
||||||
<input type="submit" class="button" value="Install" />
|
<input type="submit" class="button" value="Install" />
|
||||||
|
<%=Html.AntiForgeryTokenOrchard() %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% } %>
|
<% } %>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%><%
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %><%
|
|
||||||
Html.RegisterStyle("site.css"); %>
|
Html.RegisterStyle("site.css"); %>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<div id="header">
|
<div id="header">
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CreateBlogViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CreateBlogViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<% Html.AddTitleParts("Add Blog"); %>
|
<h2><%=Html.TitleForPage("Add Blog") %></h2>
|
||||||
<h2>Add Blog</h2>
|
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorForItem(vm => vm.Blog) %>
|
<%=Html.EditorForItem(vm => vm.Blog) %>
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogEditViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogEditViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<% Html.AddTitleParts("Edit Blog"); %>
|
<h2><%=Html.TitleForPage("Edit Blog") %></h2>
|
||||||
<h2>Edit Blog</h2>
|
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorForItem(m => m.Blog) %>
|
<%=Html.EditorForItem(m => m.Blog) %>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<%=Html.DisplayForItem(m => m.Blog) %>
|
<%=Html.DisplayForItem(m => m.Blog) %>
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogsViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogsViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<% Html.AddTitleParts("Blogs"); %>
|
<% Html.AddTitleParts("Blogs"); %>
|
||||||
<h1>Blogs</h1>
|
<h1>Blogs</h1>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogForAdminViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogForAdminViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<% Html.AddTitleParts("Manage Blog"); %>
|
<% Html.AddTitleParts("Manage Blog"); %>
|
||||||
<%=Html.DisplayForItem(m => m.Blog) %>
|
<%=Html.DisplayForItem(m => m.Blog) %>
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<AdminBlogsViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<AdminBlogsViewModel>" %>
|
||||||
<%@ 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.AddTitleParts("Manage Blogs"); %>
|
<h2><%=Html.TitleForPage("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><%
|
||||||
if (Model.Blogs.Count() > 0) { %>
|
if (Model.Blogs.Count() > 0) { %>
|
||||||
<div class="actions"><a class="add button" href="<%=Url.BlogCreate() %>">New Blog</a></div>
|
<div class="actions"><a class="add button" href="<%=Url.BlogCreate() %>">New Blog</a></div>
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CreateBlogPostViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CreateBlogPostViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<% Html.AddTitleParts("Add Post"); %>
|
<h2><%=Html.TitleForPage("Add Post") %></h2>
|
||||||
<h2>Add Post</h2>
|
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorForItem(m => m.BlogPost) %><%
|
<%=Html.EditorForItem(m => m.BlogPost) %><%
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogPostEditViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogPostEditViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<% Html.AddTitleParts("Edit Post"); %>
|
<h2><%=Html.TitleForPage("Edit Post") %></h2>
|
||||||
<h2>Edit Post</h2>
|
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorForItem(m => m.BlogPost) %><%
|
<%=Html.EditorForItem(m => m.BlogPost) %><%
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogPostViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogPostViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<% Html.AddTitleParts(Model.Blog.Name); %>
|
<% Html.AddTitleParts(Model.Blog.Name); %>
|
||||||
<%=Html.DisplayForItem(m=>m.BlogPost) %>
|
<%=Html.DisplayForItem(m=>m.BlogPost) %>
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<Blog>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<Blog>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<Blog>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<Blog>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<Blog>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<Blog>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<BlogPost>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<BlogPost>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<ItemDisplayModel<BlogPost>>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<ItemDisplayModel<BlogPost>>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
<%=Html.UnorderedList(Model, (bp, i) => Html.DisplayForItem(bp).ToHtmlString(), "blogPosts contentItems") %>
|
<%=Html.UnorderedList(Model, (bp, i) => Html.DisplayForItem(bp).ToHtmlString(), "blogPosts contentItems") %>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemEditorModel<Blog>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemEditorModel<Blog>>" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
<% Html.AddTitleParts(Model.Item.Name); %>
|
<% Html.AddTitleParts(Model.Item.Name); %>
|
||||||
<%=Html.EditorZone("primary") %>
|
<%=Html.EditorZone("primary") %>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemEditorModel<BlogPost>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemEditorModel<BlogPost>>" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
<% Html.AddTitleParts(Model.Item.Title); %>
|
<% Html.AddTitleParts(Model.Item.Title); %>
|
||||||
<div class="sections">
|
<div class="sections">
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("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.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%= Html.ValidationSummary() %>
|
<%= Html.ValidationSummary() %>
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Publish later") %></h2>
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<h2>Publish later</h2>
|
|
||||||
<p>Enter the scheduled publication date:</p>
|
<p>Enter the scheduled publication date:</p>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("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.BeginFormAntiForgeryPost()) {
|
<% using (Html.BeginFormAntiForgeryPost()) {
|
||||||
%><%= Html.ValidationSummary() %>
|
%><%= Html.ValidationSummary() %>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("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.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
|
|||||||
@@ -1,8 +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" %>
|
<h2><%=Html.TitleForPage("Edit Page") %></h2>
|
||||||
<h2><%=_Encoded("Edit Page") %></h2>
|
<p><%=_Encoded("about setting up a page") %></p>
|
||||||
<p class="bottomSpacer"><%=_Encoded("about setting up a page") %></p>
|
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<div class="sections">
|
<div class="sections">
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("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>
|
||||||
<% foreach (var page in Model) {
|
<% foreach (var page in Model) {
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Utility"%>
|
<%@ Import Namespace="Orchard.Utility"%>
|
||||||
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%-- todo: (heskew) localize --%>
|
<%-- todo: (heskew) localize --%>
|
||||||
<h2>Manage Pages</h2>
|
<h2><%=Html.TitleForPage("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.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.Models.PageRevision>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.Models.PageRevision>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
|
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<%--
|
<%--
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.Models.PageRevision>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.Models.PageRevision>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%@ Import Namespace="Orchard.CmsPages.Services.Templates" %>
|
<%@ Import Namespace="Orchard.CmsPages.Services.Templates" %>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<%--
|
<%--
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,10 @@
|
|||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\lib\joel.net.akismet\Joel.Net.Akismet.dll</HintPath>
|
<HintPath>..\..\..\..\lib\joel.net.akismet\Joel.Net.Akismet.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Orchard.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\Core\bin\Orchard.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Add Comment") %></h2>
|
||||||
<h2>Add Comment</h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% using(Html.BeginForm()) { %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%= Html.ValidationSummary() %>
|
|
||||||
<fieldset class="who">
|
<fieldset class="who">
|
||||||
<label for="CommentName">Name</label>
|
<label for="CommentName">Name</label>
|
||||||
<input id="CommentName" class="text" name="Name" type="text" value="<%=Model.Name %>" /><br />
|
<input id="CommentName" class="text" name="Name" type="text" value="<%=Model.Name %>" /><br />
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsDetailsViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsDetailsViewModel>" %>
|
||||||
<%@ 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"%>
|
<h2><%=Html.TitleForPage(string.Format("Comments for {0}", Model.DisplayNameForCommentedItem)) %></h2>
|
||||||
<h2>Comments for <%= Model.DisplayNameForCommentedItem %></h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% Html.BeginForm(); %>
|
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset class="actions bulk">
|
<fieldset class="actions bulk">
|
||||||
<label for="publishActions">Actions: </label>
|
<label for="publishActions">Actions: </label>
|
||||||
@@ -53,11 +52,12 @@
|
|||||||
<%
|
<%
|
||||||
int commentIndex = 0;
|
int commentIndex = 0;
|
||||||
foreach (var commentEntry in Model.Comments) {
|
foreach (var commentEntry in Model.Comments) {
|
||||||
|
var ci = commentIndex;
|
||||||
%>
|
%>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" value="<%=Model.Comments[commentIndex].Comment.Id%>" name="<%=Html.NameOf(m => m.Comments[commentIndex].Comment.Id)%>"/>
|
<input type="hidden" value="<%=Model.Comments[commentIndex].Comment.Id%>" name="<%=Html.NameOf(m => m.Comments[ci].Comment.Id)%>"/>
|
||||||
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Comments[commentIndex].IsChecked)%>"/>
|
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Comments[ci].IsChecked)%>"/>
|
||||||
<input type="hidden" value="<%= Model.DisplayNameForCommentedItem %>" name="DisplayNameForCommentedtem" />
|
<input type="hidden" value="<%= Model.DisplayNameForCommentedItem %>" name="DisplayNameForCommentedtem" />
|
||||||
<input type="hidden" value="<%= Model.CommentedItemId %>" name="CommentedItemId" />
|
<input type="hidden" value="<%= Model.CommentedItemId %>" name="CommentedItemId" />
|
||||||
</td>
|
</td>
|
||||||
@@ -88,4 +88,4 @@
|
|||||||
%><%=Html.ActionLink("Close Comments", "Close", new { commentedItemId = Model.CommentedItemId }, new { @class = "button remove" })%><%
|
%><%=Html.ActionLink("Close Comments", "Close", new { commentedItemId = Model.CommentedItemId }, new { @class = "button remove" })%><%
|
||||||
} %>
|
} %>
|
||||||
</div>
|
</div>
|
||||||
<% Html.EndForm(); %>
|
<% } %>
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsEditViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsEditViewModel>" %>
|
||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Edit Comment")%></h2>
|
||||||
<h2>Edit Comment</h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% using(Html.BeginForm()) { %>
|
|
||||||
<%= Html.ValidationSummary() %>
|
<%= Html.ValidationSummary() %>
|
||||||
<fieldset class="who">
|
<fieldset class="who">
|
||||||
<label for="CommentName">Name</label>
|
<label for="CommentName">Name</label>
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsIndexViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsIndexViewModel>" %>
|
||||||
<%@ 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"%>
|
<h2><%=Html.TitleForPage("Manage Comments")%></h2>
|
||||||
<h2>Manage Comments</h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% Html.BeginForm(); %>
|
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset class="actions bulk">
|
<fieldset class="actions bulk">
|
||||||
<label for="publishActions">Actions: </label>
|
<label for="publishActions">Actions: </label>
|
||||||
@@ -48,11 +47,12 @@
|
|||||||
<%
|
<%
|
||||||
int commentIndex = 0;
|
int commentIndex = 0;
|
||||||
foreach (var commentEntry in Model.Comments) {
|
foreach (var commentEntry in Model.Comments) {
|
||||||
|
var ci = commentIndex;
|
||||||
%>
|
%>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" value="<%=Model.Comments[commentIndex].Comment.Id%>" name="<%=Html.NameOf(m => m.Comments[commentIndex].Comment.Id)%>"/>
|
<input type="hidden" value="<%=Model.Comments[commentIndex].Comment.Id%>" name="<%=Html.NameOf(m => m.Comments[ci].Comment.Id)%>"/>
|
||||||
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Comments[commentIndex].IsChecked)%>"/>
|
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Comments[ci].IsChecked)%>"/>
|
||||||
</td>
|
</td>
|
||||||
<td><% if (commentEntry.Comment.Status == CommentStatus.Spam) {%> Spam <% } %>
|
<td><% if (commentEntry.Comment.Status == CommentStatus.Spam) {%> Spam <% } %>
|
||||||
<% else {%> Approved <% } %>
|
<% else {%> Approved <% } %>
|
||||||
@@ -77,4 +77,4 @@
|
|||||||
} %>
|
} %>
|
||||||
</table>
|
</table>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% Html.EndForm(); %>
|
<% } %>
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HasComments>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HasComments>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Comments.Models"%>
|
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||||
<span class="commentcount"><a href="#comments"><%=Model.Comments.Count() %> Comment<%=Model.Comments.Count() == 1 ? "" : "s" %></a></span>
|
<span class="commentcount"><a href="#comments"><%=Model.Comments.Count() %> Comment<%=Model.Comments.Count() == 1 ? "" : "s" %></a></span>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HasComments>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HasComments>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Comments.Models"%>
|
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||||
<h3 id="comments"><a name="comments"><%=Model.Comments.Count() %> Comment<%=Model.Comments.Count() == 1 ? "" : "s" %></a></h3><%
|
<h3 id="comments"><a name="comments"><%=Model.Comments.Count() %> Comment<%=Model.Comments.Count() == 1 ? "" : "s" %></a></h3><%
|
||||||
foreach (var comment in Model.Comments) { %>
|
foreach (var comment in Model.Comments) { %>
|
||||||
@@ -33,6 +32,7 @@ if (Model.Closed) { %>
|
|||||||
<label for="CommentText">Leave a comment</label>
|
<label for="CommentText">Leave a comment</label>
|
||||||
<textarea id="CommentText" rows="10" cols="30" name="CommentText"></textarea><br />
|
<textarea id="CommentText" rows="10" cols="30" name="CommentText"></textarea><br />
|
||||||
<input type="submit" class="button" value="Submit Comment" />
|
<input type="submit" class="button" value="Submit Comment" />
|
||||||
|
<%=Html.AntiForgeryTokenOrchard() %>
|
||||||
</fieldset><%
|
</fieldset><%
|
||||||
}
|
}
|
||||||
} %>
|
} %>
|
||||||
@@ -76,6 +76,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||||
|
|
||||||
<%@ Import Namespace="System.Reflection" %>
|
<%@ Import Namespace="System.Reflection" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
|
|
||||||
<h3>Content Item</h3>
|
<h3>Content Item</h3>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.DevTools.ViewModels.ContentIndexViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.DevTools.ViewModels.ContentIndexViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Content Types</h3>
|
<h3>Content Types</h3>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BaseViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BaseViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
|
|
||||||
<p><%=Html.ActionLink("Contents", "Index", "Content") %></p>
|
<p><%=Html.ActionLink("Contents", "Index", "Content") %></p>
|
||||||
|
|||||||
@@ -76,6 +76,7 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Add Media")%></h2>
|
||||||
<h2>Add Media </h2>
|
|
||||||
<p>
|
<p>
|
||||||
<%=Html.ActionLink("Media Folders", "Index")%> >
|
<%=Html.ActionLink("Media Folders", "Index")%> >
|
||||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
||||||
@@ -21,5 +20,6 @@
|
|||||||
<input id="MediaItemPath" name="MediaItemPath" type="file" class="text" value="Browse" size="64"/>
|
<input id="MediaItemPath" name="MediaItemPath" type="file" class="text" value="Browse" size="64"/>
|
||||||
<input type="submit" class="button" value="Upload" /><br />
|
<input type="submit" class="button" value="Upload" /><br />
|
||||||
<span>After your files have been uploaded, you can edit the titles and descriptions.</span>
|
<span>After your files have been uploaded, you can edit the titles and descriptions.</span>
|
||||||
|
<%=Html.AntiForgeryTokenOrchard() %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% } %>
|
<% } %>
|
||||||
@@ -2,8 +2,7 @@
|
|||||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Add a Folder")%></h2>
|
||||||
<h2>Add a Folder</h2>
|
|
||||||
<p><%=Html.ActionLink("Media Folders", "Index")%> >
|
<p><%=Html.ActionLink("Media Folders", "Index")%> >
|
||||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
||||||
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||||
<%@ 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"%>
|
<h2><%=Html.TitleForPage("Manage Folder")%></h2>
|
||||||
<h2 class="separator">Manage Folder</h2>
|
|
||||||
<div class="manage"><%=Html.ActionLink("Folder Properties", "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button"})%></div>
|
<div class="manage"><%=Html.ActionLink("Folder Properties", "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button"})%></div>
|
||||||
<p><%=Html.ActionLink("Media Folders", "Index")%> >
|
<p><%=Html.ActionLink("Media Folders", "Index")%> >
|
||||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
||||||
@@ -12,7 +11,7 @@
|
|||||||
|
|
||||||
<% } %>
|
<% } %>
|
||||||
Manage Folder</p>
|
Manage Folder</p>
|
||||||
<% Html.BeginForm(); %>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<fieldset class="actions bulk">
|
<fieldset class="actions bulk">
|
||||||
<label for="publishActions">Actions: </label>
|
<label for="publishActions">Actions: </label>
|
||||||
<select id="Select1" name="publishActions">
|
<select id="Select1" name="publishActions">
|
||||||
@@ -88,4 +87,4 @@
|
|||||||
<%=Html.ActionLink("Add media", "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button" })%>
|
<%=Html.ActionLink("Add media", "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button" })%>
|
||||||
<%=Html.ActionLink("Add a folder", "Create", new { Model.MediaPath }, new { @class = "button" })%>
|
<%=Html.ActionLink("Add a folder", "Create", new { Model.MediaPath }, new { @class = "button" })%>
|
||||||
</div>
|
</div>
|
||||||
<% Html.EndForm(); %>
|
<% } %>
|
||||||
@@ -2,8 +2,7 @@
|
|||||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Edit Media - {0}", Model.Name)%></h2>
|
||||||
<h2>Edit Media - <%= Model.Name %></h2>
|
|
||||||
<p>
|
<p>
|
||||||
<%=Html.ActionLink("Media Folders", "Index")%> >
|
<%=Html.ActionLink("Media Folders", "Index")%> >
|
||||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Folder Properties")%></h2>
|
||||||
<h2>Folder Properties</h2>
|
|
||||||
<p><%=Html.ActionLink("Media Folders", "Index")%> >
|
<p><%=Html.ActionLink("Media Folders", "Index")%> >
|
||||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
||||||
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
||||||
@@ -11,8 +10,8 @@
|
|||||||
|
|
||||||
<% } %>
|
<% } %>
|
||||||
Folder Properties</p>
|
Folder Properties</p>
|
||||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%= Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="Name">Folder Name:</label>
|
<label for="Name">Folder Name:</label>
|
||||||
<input id="MediaPath" name="MediaPath" type="hidden" value="<%=Model.MediaPath %>" />
|
<input id="MediaPath" name="MediaPath" type="hidden" value="<%=Model.MediaPath %>" />
|
||||||
@@ -20,4 +19,4 @@
|
|||||||
<input type="submit" class="button buttonFocus roundCorners" name="submit.Save" value="Save" />
|
<input type="submit" class="button buttonFocus roundCorners" name="submit.Save" value="Save" />
|
||||||
<%--<input type="submit" class="button buttonFocus roundCorners" name="submit.Delete" value="Delete" />--%>
|
<%--<input type="submit" class="button buttonFocus roundCorners" name="submit.Delete" value="Delete" />--%>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<%}%>
|
<% } %>
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
<%@ 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"%>
|
<h2><%=Html.TitleForPage("Manage Media Folders")%></h2>
|
||||||
<h2>Manage Media Folders</h2>
|
|
||||||
<p><%=Html.ActionLink("Media Folders", "Index")%> > Manage Media Folders</p>
|
<p><%=Html.ActionLink("Media Folders", "Index")%> > Manage Media Folders</p>
|
||||||
<% Html.BeginForm(); %>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset class="actions bulk">
|
<fieldset class="actions bulk">
|
||||||
<label for="publishActions">Actions: </label>
|
<label for="publishActions">Actions: </label>
|
||||||
@@ -49,4 +48,4 @@
|
|||||||
</table>
|
</table>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div class="manage"><%=Html.ActionLink("Add a folder", "Create", new {}, new { @class = "button"}) %></div>
|
<div class="manage"><%=Html.ActionLink("Add a folder", "Create", new {}, new { @class = "button"}) %></div>
|
||||||
<% Html.EndForm(); %>
|
<% } %>
|
||||||
@@ -76,6 +76,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,10 @@
|
|||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="Orchard.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\Core\bin\Orchard.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Add Role")%></h2>
|
||||||
<h2>Add Role</h2>
|
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary()%>
|
<%=Html.ValidationSummary()%>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|||||||
@@ -1,8 +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" %>
|
<h2><%=Html.TitleForPage("Edit Role")%></h2>
|
||||||
<h2>Edit Role</h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% using(Html.BeginForm()) { %>
|
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Information</legend>
|
<legend>Information</legend>
|
||||||
|
|||||||
@@ -1,7 +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" %>
|
<h2><%=Html.TitleForPage("Manage Roles")%></h2>
|
||||||
<h2>Manage Roles</h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% using(Html.BeginForm()) { %>
|
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset class="actions bulk">
|
<fieldset class="actions bulk">
|
||||||
<label for="publishActions">Actions: </label>
|
<label for="publishActions">Actions: </label>
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<SandboxPage>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<SandboxPage>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Sandbox.Models" %>
|
<%@ Import Namespace="Orchard.Sandbox.Models" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<SandboxPage>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemDisplayModel<SandboxPage>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%@ Import Namespace="Orchard.Sandbox.Models" %>
|
<%@ Import Namespace="Orchard.Sandbox.Models" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IContent>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IContent>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%@ Import Namespace="Orchard.Sandbox.Models" %>
|
<%@ Import Namespace="Orchard.Sandbox.Models" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement" %>
|
<%@ Import Namespace="Orchard.ContentManagement" %>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemEditorModel<SandboxPage>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemEditorModel<SandboxPage>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%@ Import Namespace="Orchard.Sandbox.Models" %>
|
<%@ Import Namespace="Orchard.Sandbox.Models" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageCreateViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageCreateViewModel>" %>
|
||||||
|
|
||||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<h3>
|
<h3>
|
||||||
Create Page</h3>
|
Create Page</h3>
|
||||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageEditViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageEditViewModel>" %>
|
||||||
|
|
||||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<h3>
|
<h3>
|
||||||
Edit Page</h3>
|
Edit Page</h3>
|
||||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %>
|
||||||
|
|
||||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<h3>
|
<h3>
|
||||||
Sandbox Pages</h3>
|
Sandbox Pages</h3>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageShowViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageShowViewModel>" %>
|
||||||
|
|
||||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%= Html.DisplayForItem(Model.Page) %>
|
<%= Html.DisplayForItem(Model.Page) %>
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,10 @@
|
|||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="Orchard.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\Core\bin\Orchard.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Add a Tag") %></h2>
|
||||||
<h2>Add a Tag</h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%-- todo: (heskew) change all of the explicit begin/end forms to using blocks --%>
|
<%=Html.ValidationSummary() %>
|
||||||
<% Html.BeginForm(); %>
|
|
||||||
<%= Html.ValidationSummary() %>
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<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="text" name="TagName" type="text" value="<%=Model.TagName%>" />
|
||||||
<input type="submit" class="button" value="Save" />
|
<input type="submit" class="button" value="Save" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% Html.EndForm(); %>
|
<% } %>
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Edit a Tag") %></h2>
|
||||||
<h2>Edit a Tag</h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% Html.BeginForm(); %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%= Html.ValidationSummary() %>
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="Name">Name:</label>
|
<label for="Name">Name:</label>
|
||||||
<input id="Id" name="Id" type="hidden" value="<%=Model.Id %>" />
|
<input id="Id" name="Id" type="hidden" value="<%=Model.Id %>" />
|
||||||
<input id="TagName" class="text" name="TagName" type="text" value="<%= Model.TagName %>" />
|
<input id="TagName" class="text" name="TagName" type="text" value="<%= Model.TagName %>" />
|
||||||
<input type="submit" class="button" value="Save" />
|
<input type="submit" class="button" value="Save" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% Html.EndForm(); %>
|
<% } %>
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
<%@ 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"%>
|
<h2><%=Html.TitleForPage("Manage Tags")%></h2>
|
||||||
<h2>Manage Tags</h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% Html.BeginForm(); %>
|
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset class="actions bulk">
|
<fieldset class="actions bulk">
|
||||||
<label for="publishActions">Actions: </label>
|
<label for="publishActions">Actions: </label>
|
||||||
@@ -30,11 +29,12 @@
|
|||||||
<%
|
<%
|
||||||
int tagIndex = 0;
|
int tagIndex = 0;
|
||||||
foreach (var tagEntry in Model.Tags) {
|
foreach (var tagEntry in Model.Tags) {
|
||||||
|
var ti = tagIndex;
|
||||||
%>
|
%>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" value="<%=Model.Tags[tagIndex].Tag.Id%>" name="<%=Html.NameOf(m => m.Tags[tagIndex].Tag.Id)%>"/>
|
<input type="hidden" value="<%=Model.Tags[tagIndex].Tag.Id%>" name="<%=Html.NameOf(m => m.Tags[ti].Tag.Id)%>"/>
|
||||||
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Tags[tagIndex].IsChecked)%>"/>
|
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Tags[ti].IsChecked)%>"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%=Html.ActionLink(tagEntry.Tag.TagName, "Search", new {id = tagEntry.Tag.Id}) %>
|
<%=Html.ActionLink(tagEntry.Tag.TagName, "Search", new {id = tagEntry.Tag.Id}) %>
|
||||||
@@ -47,4 +47,4 @@
|
|||||||
</table>
|
</table>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div class="manage"><%=Html.ActionLink("Add a tag", "Create", new { }, new { @class = "button" })%></div>
|
<div class="manage"><%=Html.ActionLink("Add a tag", "Create", new { }, new { @class = "button" })%></div>
|
||||||
<% Html.EndForm(); %>
|
<% } %>
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsAdminSearchViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsAdminSearchViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
<h2><%=Html.TitleForPage(string.Format("List of contents tagged with {0}", Model.TagName)) %></h2>
|
||||||
<h2>List of contents tagged with <%=Model.TagName %></h2>
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<% using(Html.BeginForm()) { %>
|
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<table class="items">
|
<table class="items">
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HasTags>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HasTags>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%@ Import Namespace="Orchard.Tags.Models" %>
|
<%@ Import Namespace="Orchard.Tags.Models" %>
|
||||||
<p class="tags">
|
<p class="tags">
|
||||||
<% if (Model.CurrentTags.Count > 0) { %><span>Tags:</span> <% } %>
|
<% if (Model.CurrentTags.Count > 0) { %><span>Tags:</span> <% } %>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EditTagsViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EditTagsViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Tags.ViewModels" %>
|
<%@ Import Namespace="Orchard.Tags.ViewModels" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%@ Import Namespace="Orchard.Tags.Models" %>
|
<%@ Import Namespace="Orchard.Tags.Models" %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<%=Html.LabelFor(m=>m.Tags) %>
|
<%=Html.LabelFor(m=>m.Tags) %>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TagsIndexViewModel>" %>
|
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TagsIndexViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%-- todo: (heskew) make master-less when we get into theming --%>
|
<%-- todo: (heskew) make master-less when we get into theming --%>
|
||||||
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
|
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
|
||||||
<h2>Tags</h2>
|
<h2>Tags</h2>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TagsSearchViewModel>" %>
|
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TagsSearchViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%-- todo: (heskew) make master-less when we get into theming --%>
|
<%-- todo: (heskew) make master-less when we get into theming --%>
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||||
<h2>List of contents tagged with <em><%= Model.TagName %></em></h2>
|
<h2>List of contents tagged with <em><%= Model.TagName %></em></h2>
|
||||||
|
|||||||
@@ -76,6 +76,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,10 @@
|
|||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="Orchard.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\Core\bin\Orchard.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Add User") %></h2>
|
||||||
<h2>Add User</h2>
|
|
||||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorFor(m=>m.UserName, "inputTextLarge") %>
|
<%=Html.EditorFor(m=>m.UserName, "inputTextLarge") %>
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
<%@ 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" %>
|
<h2><%=Html.TitleForPage("Edit User") %></h2>
|
||||||
<h2>
|
|
||||||
Edit User</h2>
|
|
||||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorFor(m=>m.Id) %>
|
<%=Html.EditorFor(m=>m.Id) %>
|
||||||
<%=Html.EditorFor(m=>m.UserName, "inputTextLarge") %>
|
<%=Html.EditorFor(m=>m.UserName, "inputTextLarge") %>
|
||||||
<%=Html.EditorFor(m=>m.Email, "inputTextLarge") %>
|
<%=Html.EditorFor(m=>m.Email, "inputTextLarge") %>
|
||||||
<%=Html.EditorForItem(Model.User) %>
|
<%=Html.EditorForItem(Model.User) %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input class="button" type="submit" value="Save" />
|
<input class="button" type="submit" value="Save" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Users.ViewModels.UsersIndexViewModel>" %>
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.Users.ViewModels.UsersIndexViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||||
<%@ Import Namespace="Orchard.Security" %>
|
<%@ Import Namespace="Orchard.Security" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
<h2><%=Html.TitleForPage("Manage Users") %></h2>
|
||||||
<h2>Manage Users</h2>
|
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<%=Html.ValidationSummary()%>
|
<%=Html.ValidationSummary()%>
|
||||||
<div class="manage"><%=Html.ActionLink("Add a new user", "Create", new { }, new { @class = "button" })%></div>
|
<div class="manage"><%=Html.ActionLink("Add a new user", "Create", new { }, new { @class = "button" })%></div>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemEditorModel<User>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ItemEditorModel<User>>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %>
|
||||||
<%@ Import Namespace="Orchard.Users.Models" %>
|
<%@ Import Namespace="Orchard.Users.Models" %>
|
||||||
<%=Html.EditorZonesAny() %>
|
<%=Html.EditorZonesAny() %>
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<add namespace="System.Web.Routing"/>
|
<add namespace="System.Web.Routing"/>
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Core.Common.Mvc.Html" />
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
|
|||||||
@@ -134,6 +134,9 @@
|
|||||||
<Name>Orchard</Name>
|
<Name>Orchard</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Web.config" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
||||||
<%@ Import Namespace="System.Web.Mvc.Html" %>
|
|
||||||
<% Html.RegisterScript("tiny_mce.js"); %>
|
<% Html.RegisterScript("tiny_mce.js"); %>
|
||||||
<%=Html.TextArea("", Model, 25, 80, new { @class = "html" }) %>
|
<%=Html.TextArea("", Model, 25, 80, new { @class = "html" }) %>
|
||||||
|
|
||||||
|
|||||||
154
src/Orchard.Web/Packages/TinyMce/Web.config
Normal file
154
src/Orchard.Web/Packages/TinyMce/Web.config
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
Note: As an alternative to hand editing this file you can use the
|
||||||
|
web admin tool to configure settings for your application. Use
|
||||||
|
the Website->Asp.Net Configuration option in Visual Studio.
|
||||||
|
A full list of settings and comments can be found in
|
||||||
|
machine.config.comments usually located in
|
||||||
|
\Windows\Microsoft.Net\Framework\v2.x\Config
|
||||||
|
-->
|
||||||
|
<configuration>
|
||||||
|
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||||
|
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||||
|
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
||||||
|
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||||
|
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
|
||||||
|
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||||
|
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||||
|
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||||
|
</sectionGroup>
|
||||||
|
</sectionGroup>
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
|
|
||||||
|
|
||||||
|
<system.web>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Set compilation debug="true" to insert debugging
|
||||||
|
symbols into the compiled page. Because this
|
||||||
|
affects performance, set this value to true only
|
||||||
|
during development.
|
||||||
|
-->
|
||||||
|
<compilation debug="true">
|
||||||
|
<assemblies>
|
||||||
|
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||||
|
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||||
|
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||||
|
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||||
|
</assemblies>
|
||||||
|
</compilation>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The <customErrors> section enables configuration
|
||||||
|
of what to do if/when an unhandled error occurs
|
||||||
|
during the execution of a request. Specifically,
|
||||||
|
it enables developers to configure html error pages
|
||||||
|
to be displayed in place of a error stack trace.
|
||||||
|
|
||||||
|
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
|
||||||
|
<error statusCode="403" redirect="NoAccess.htm" />
|
||||||
|
<error statusCode="404" redirect="FileNotFound.htm" />
|
||||||
|
</customErrors>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<pages>
|
||||||
|
<controls>
|
||||||
|
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
</controls>
|
||||||
|
|
||||||
|
<namespaces>
|
||||||
|
<add namespace="System.Web.Mvc"/>
|
||||||
|
<add namespace="System.Web.Mvc.Ajax"/>
|
||||||
|
<add namespace="System.Web.Mvc.Html"/>
|
||||||
|
<add namespace="System.Web.Routing"/>
|
||||||
|
<add namespace="System.Linq"/>
|
||||||
|
<add namespace="System.Collections.Generic"/>
|
||||||
|
<add namespace="Orchard.Mvc.Html" />
|
||||||
|
</namespaces>
|
||||||
|
</pages>
|
||||||
|
|
||||||
|
<httpHandlers>
|
||||||
|
<remove verb="*" path="*.asmx"/>
|
||||||
|
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
|
||||||
|
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
</httpHandlers>
|
||||||
|
|
||||||
|
<httpModules>
|
||||||
|
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||||
|
</httpModules>
|
||||||
|
|
||||||
|
</system.web>
|
||||||
|
|
||||||
|
<system.codedom>
|
||||||
|
<compilers>
|
||||||
|
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
|
||||||
|
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<providerOption name="CompilerVersion" value="v3.5"/>
|
||||||
|
<providerOption name="WarnAsError" value="false"/>
|
||||||
|
</compiler>
|
||||||
|
|
||||||
|
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4"
|
||||||
|
type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<providerOption name="CompilerVersion" value="v3.5"/>
|
||||||
|
<providerOption name="OptionInfer" value="true"/>
|
||||||
|
<providerOption name="WarnAsError" value="false"/>
|
||||||
|
</compiler>
|
||||||
|
</compilers>
|
||||||
|
</system.codedom>
|
||||||
|
|
||||||
|
<system.web.extensions/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The system.webServer section is required for running ASP.NET AJAX under Internet
|
||||||
|
Information Services 7.0. It is not necessary for previous version of IIS.
|
||||||
|
-->
|
||||||
|
<system.webServer>
|
||||||
|
<validation validateIntegratedModeConfiguration="false"/>
|
||||||
|
|
||||||
|
<modules runAllManagedModulesForAllRequests="true">
|
||||||
|
<remove name="ScriptModule" />
|
||||||
|
<remove name="UrlRoutingModule" />
|
||||||
|
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
<handlers>
|
||||||
|
<remove name="WebServiceHandlerFactory-Integrated"/>
|
||||||
|
<remove name="ScriptHandlerFactory" />
|
||||||
|
<remove name="ScriptHandlerFactoryAppServices" />
|
||||||
|
<remove name="ScriptResource" />
|
||||||
|
<remove name="MvcHttpHandler" />
|
||||||
|
<remove name="UrlRoutingHandler" />
|
||||||
|
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
|
||||||
|
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
|
||||||
|
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||||
|
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||||
|
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
</handlers>
|
||||||
|
</system.webServer>
|
||||||
|
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
|
||||||
|
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%><%
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %><%
|
|
||||||
Html.RegisterStyle("site.css");
|
Html.RegisterStyle("site.css");
|
||||||
%>
|
%>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<AdminViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<AdminViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%><%
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %><%
|
|
||||||
Html.RegisterStyle("site.css"); %>
|
Html.RegisterStyle("site.css"); %>
|
||||||
<div id="header" role="banner">
|
<div id="header" role="banner">
|
||||||
<h1><%=Html.ActionLink("Project Orchard", "Index", new { Area = "", Controller = "Home" })%></h1>
|
<h1><%=Html.ActionLink("Project Orchard", "Index", new { Area = "", Controller = "Home" })%></h1>
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
<h2><%=Html.TitleForPage("Change Password") %></h2>
|
||||||
<% Html.AddTitleParts("Change Password"); %>
|
|
||||||
<h2>Change Password</h2>
|
|
||||||
<p>Use the form below to change your password. </p>
|
<p>Use the form below to change your password. </p>
|
||||||
<p>New passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.</p>
|
<p>New passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.</p>
|
||||||
<%= Html.ValidationSummary("Password change was unsuccessful. Please correct the errors and try again.")%>
|
<%= Html.ValidationSummary("Password change was unsuccessful. Please correct the errors and try again.")%>
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
<h2><%=Html.TitleForPage("Change Password") %></h2>
|
||||||
<% Html.AddTitleParts("Change Password"); %>
|
|
||||||
<h2>Change Password</h2>
|
|
||||||
<p>Your password has been changed successfully.</p>
|
<p>Your password has been changed successfully.</p>
|
||||||
@@ -1,11 +1,7 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||||
<% Html.AddTitleParts("Log On"); %>
|
<h2><%=Html.TitleForPage("Log On") %></h2>
|
||||||
<h2>Log On</h2>
|
<p>Please enter your username and password. <%= Html.ActionLink("Register", "Register") %> if you don't have an account.</p>
|
||||||
<p>
|
|
||||||
Please enter your username and password. <%= Html.ActionLink("Register", "Register") %> if you don't have an account.
|
|
||||||
</p>
|
|
||||||
<% if (Model != null && Model.Messages != null) Html.RenderPartial("Messages", Model.Messages); %>
|
<% if (Model != null && Model.Messages != null) Html.RenderPartial("Messages", Model.Messages); %>
|
||||||
<%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
|
<%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,8 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
<h2><%=Html.TitleForPage("Create a New Account") %></h2>
|
||||||
<% Html.AddTitleParts("Register"); %>
|
<p>Use the form below to create a new account. </p>
|
||||||
<h2>Create a New Account</h2>
|
<p>Passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.</p>
|
||||||
<p>
|
|
||||||
Use the form below to create a new account.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.
|
|
||||||
</p>
|
|
||||||
<%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>
|
<%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>
|
||||||
|
|
||||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||||
<div>
|
<div>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
<h2><%=Html.TitleForPage("About") %></h2>
|
||||||
<% Html.AddTitleParts("About Us"); %>
|
|
||||||
<h2> About</h2>
|
|
||||||
<p>Put content here.</p>
|
<p>Put content here.</p>
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
||||||
<% Html.AddTitleParts("Home Page"); %>
|
|
||||||
<h2><%= Html.Encode(ViewData["Message"]) %></h2>
|
<h2><%= Html.Encode(ViewData["Message"]) %></h2>
|
||||||
<p>To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.</p>
|
<p>To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.</p>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %>
|
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %>
|
||||||
|
<%-- todo: (heskew) use (and fix, of course) --%>
|
||||||
<asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContent" runat="server">
|
<asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContent" runat="server">
|
||||||
Error
|
Error
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user