mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +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>
|
||||
@Html.TitleForPage(T("Command line").ToString())
|
||||
</h1>
|
||||
<div>
|
||||
@using (Html.BeginFormAntiForgeryPost(Url.Action("Execute"))) {
|
||||
Html.ValidationSummary()
|
||||
@Html.ValidationSummary()
|
||||
<ul>
|
||||
@for (int index = 0; index != (Model.History ?? new string[0]).Length; ++index) {
|
||||
<li>
|
||||
@Model.History[index]
|
||||
@Html.HiddenFor(m => m.History[index])
|
||||
</li>
|
||||
}
|
||||
<li>
|
||||
@Model.History[index]
|
||||
@Html.HiddenFor(m => m.History[index])
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
@Html.LabelFor(m => m.CommandLine, T("Command Line"))
|
||||
@Html.TextBoxFor(m => m.CommandLine, new { style = "width:100%;" })
|
||||
@Html.ValidationMessageFor(m => m.CommandLine)
|
||||
<pre>@Model.Results</pre>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
@Display(Model.Metadata.ChildContent)
|
||||
@{
|
||||
var workContext = ViewContext.GetWorkContext();
|
||||
var shapeTable = workContext.Resolve<IShapeTableManager>().GetShapeTable(workContext.CurrentTheme.ThemeName);
|
||||
var shapeTable = workContext.Resolve<IShapeTableManager>().GetShapeTable(workContext.CurrentTheme.Name);
|
||||
<!--
|
||||
<ul>
|
||||
@foreach(var binding in shapeTable.Bindings) {
|
||||
|
@@ -2,7 +2,7 @@
|
||||
@using Orchard.DisplayManagement.Descriptors;
|
||||
@{
|
||||
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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user