2009-11-07 22:49:58 +00:00
|
|
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.ChooseTemplateViewModel>" %>
|
|
|
|
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
|
|
|
|
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
2009-11-22 08:46:22 +00:00
|
|
|
<% Html.Include("Head"); %>
|
2009-11-24 07:43:07 +00:00
|
|
|
<h2>Change Template</h2>
|
|
|
|
<p>Select your layout from one of the templates below.</p>
|
|
|
|
<% using (Html.BeginForm()) {
|
|
|
|
%><%= Html.ValidationSummary() %>
|
|
|
|
<fieldset>
|
2009-11-24 16:36:01 +00:00
|
|
|
<ol class="templates"><%
|
|
|
|
foreach (var template in Model.Templates) {
|
|
|
|
var t = template; %>
|
|
|
|
<li><%=
|
|
|
|
Html.EditorFor(m => t) %>
|
|
|
|
</li><%
|
|
|
|
} %>
|
2009-11-24 07:43:07 +00:00
|
|
|
</ol>
|
|
|
|
</fieldset>
|
|
|
|
<div>
|
|
|
|
<input class="button" type="submit" value="Save Template Change" />
|
|
|
|
<%=Html.ActionLink("Cancel", "Edit", new { Id = ViewContext.RouteData.GetRequiredString("id") }, new { @class = "cancel" })%>
|
|
|
|
</div><%
|
|
|
|
} %>
|
2009-11-22 08:46:22 +00:00
|
|
|
<% Html.Include("Foot"); %>
|