mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Changing some method names, adding zone helpers for item editor template
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043117
This commit is contained in:
@@ -78,23 +78,6 @@
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
<h3>
|
||||
Editors</h3>
|
||||
<ul>
|
||||
<%foreach (var editor in Model.Editors) {%>
|
||||
<li><span style="font-weight: bold">
|
||||
<%=Html.Encode(editor.Prefix) %></span>
|
||||
<%=Html.Encode(editor.Model.GetType().Name) %>
|
||||
(<%=Html.Encode(editor.Model.GetType().Namespace) %>)
|
||||
Prefix:<%=Html.Encode(editor.Prefix ?? "(null)")%>
|
||||
Position:<%=Html.Encode(editor.Position??"(null)") %>
|
||||
<div style="margin-left: 20px; border: solid 1px black;">
|
||||
<%=Html.EditorFor(x=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
||||
</div>
|
||||
</li>
|
||||
<%
|
||||
}%>
|
||||
</ul>
|
||||
<h3>
|
||||
Displays</h3>
|
||||
<ul>
|
||||
@@ -104,6 +87,7 @@
|
||||
<%=Html.Encode(display.Model.GetType().Name)%>
|
||||
(<%=Html.Encode(display.Model.GetType().Namespace)%>)
|
||||
Prefix:<%=Html.Encode(display.Prefix ?? "(null)")%>
|
||||
Zone:<%=Html.Encode(display.ZoneName ?? "(null)")%>
|
||||
Position:<%=Html.Encode(display.Position ?? "(null)")%>
|
||||
<div style="margin-left: 20px; border: solid 1px black;">
|
||||
<%=Html.DisplayFor(x => display.Model, display.TemplateName, display.Prefix)%>
|
||||
@@ -112,6 +96,24 @@
|
||||
<%
|
||||
}%>
|
||||
</ul>
|
||||
<h3>
|
||||
Editors</h3>
|
||||
<ul>
|
||||
<%foreach (var editor in Model.Editors) {%>
|
||||
<li><span style="font-weight: bold">
|
||||
<%=Html.Encode(editor.Prefix) %></span>
|
||||
<%=Html.Encode(editor.Model.GetType().Name) %>
|
||||
(<%=Html.Encode(editor.Model.GetType().Namespace) %>)
|
||||
Prefix:<%=Html.Encode(editor.Prefix ?? "(null)")%>
|
||||
Zone:<%=Html.Encode(editor.ZoneName ?? "(null)")%>
|
||||
Position:<%=Html.Encode(editor.Position??"(null)") %>
|
||||
<div style="margin-left: 20px; border: solid 1px black;">
|
||||
<%=Html.EditorFor(x=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
||||
</div>
|
||||
</li>
|
||||
<%
|
||||
}%>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<% Html.Include("footer"); %>
|
||||
|
||||
Reference in New Issue
Block a user