mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding the CMSPages TemplateDescriptor editor template.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042052
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateDescriptor>" %>
|
||||
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
|
||||
<ul>
|
||||
<li>
|
||||
<h3><%=Html.Encode(Model.DisplayName)%></h3>
|
||||
</li>
|
||||
<li>
|
||||
<label title="<%=Html.Encode(Model.DisplayName)%>" for="TemplateName_<%=Model.Name%>">
|
||||
<%-- todo: (heskew) need to know if this template descriptor is what's currently set. view model? --%>
|
||||
<%=Html.RadioButton("TemplateName", Model.Name, "" == Model.Name, new { id="TemplateName_" + Model.Name })%>
|
||||
Select this template</label>
|
||||
</li>
|
||||
<li>
|
||||
<p><img src="<%=Html.Encode(Model.Name)%>.gif" alt="<%=Html.Encode(Model.DisplayName)%>" /><%=Html.Encode(Model.Description)%></p>
|
||||
</li>
|
||||
</ul>
|
Reference in New Issue
Block a user