mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 12:03:51 +08:00
Updating experimental templates for name change
--HG-- branch : dev
This commit is contained in:
@@ -1,20 +1,21 @@
|
|||||||
|
@model Orchard.Experimental.ViewModels.CommandsExecuteViewModel
|
||||||
<h1>
|
<h1>
|
||||||
@Html.TitleForPage(T("Command line").ToString())
|
@Html.TitleForPage(T("Command line").ToString())
|
||||||
</h1>
|
</h1>
|
||||||
<div>
|
<div>
|
||||||
@using (Html.BeginFormAntiForgeryPost(Url.Action("Execute"))) {
|
@using (Html.BeginFormAntiForgeryPost(Url.Action("Execute"))) {
|
||||||
Html.ValidationSummary()
|
@Html.ValidationSummary()
|
||||||
<ul>
|
<ul>
|
||||||
@for (int index = 0; index != (Model.History ?? new string[0]).Length; ++index) {
|
@for (int index = 0; index != (Model.History ?? new string[0]).Length; ++index) {
|
||||||
<li>
|
<li>
|
||||||
@Model.History[index]
|
@Model.History[index]
|
||||||
@Html.HiddenFor(m => m.History[index])
|
@Html.HiddenFor(m => m.History[index])
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
@Html.LabelFor(m => m.CommandLine, T("Command Line"))
|
@Html.LabelFor(m => m.CommandLine, T("Command Line"))
|
||||||
@Html.TextBoxFor(m => m.CommandLine, new { style = "width:100%;" })
|
@Html.TextBoxFor(m => m.CommandLine, new { style = "width:100%;" })
|
||||||
@Html.ValidationMessageFor(m => m.CommandLine)
|
@Html.ValidationMessageFor(m => m.CommandLine)
|
||||||
<pre>@Model.Results</pre>
|
<pre>@Model.Results</pre>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
@Display(Model.Metadata.ChildContent)
|
@Display(Model.Metadata.ChildContent)
|
||||||
@{
|
@{
|
||||||
var workContext = ViewContext.GetWorkContext();
|
var workContext = ViewContext.GetWorkContext();
|
||||||
var shapeTable = workContext.Resolve<IShapeTableManager>().GetShapeTable(workContext.CurrentTheme.ThemeName);
|
var shapeTable = workContext.Resolve<IShapeTableManager>().GetShapeTable(workContext.CurrentTheme.Name);
|
||||||
<!--
|
<!--
|
||||||
<ul>
|
<ul>
|
||||||
@foreach(var binding in shapeTable.Bindings) {
|
@foreach(var binding in shapeTable.Bindings) {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
@using Orchard.DisplayManagement.Descriptors;
|
@using Orchard.DisplayManagement.Descriptors;
|
||||||
@{
|
@{
|
||||||
var workContext = ViewContext.GetWorkContext();
|
var workContext = ViewContext.GetWorkContext();
|
||||||
var shapeTable = workContext.Resolve<IShapeTableManager>().GetShapeTable(workContext.CurrentTheme.ThemeName);
|
var shapeTable = workContext.Resolve<IShapeTableManager>().GetShapeTable(workContext.CurrentTheme.Name);
|
||||||
var descriptor = shapeTable.Descriptors[Model.Metadata.Type];
|
var descriptor = shapeTable.Descriptors[Model.Metadata.Type];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user