Updating experimental templates for name change

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-11-08 15:31:25 -08:00
parent 837010a418
commit 7e9c27433b
3 changed files with 10 additions and 9 deletions

View File

@@ -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>

View File

@@ -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) {

View File

@@ -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];
}