Converting experimental to razor.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-10-18 13:27:24 -07:00
parent 84a058ba85
commit 7a9d2ba5c3
25 changed files with 245 additions and 244 deletions

View File

@@ -0,0 +1,20 @@
<h1>
@Html.TitleForPage(T("Command line").ToString())
</h1>
<div>
@using (Html.BeginFormAntiForgeryPost(Url.Action("Execute"))) {
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>
}
</ul>
@Html.LabelFor(m => m.CommandLine)
@Html.TextBoxFor(m => m.CommandLine, new { style = "width:100%;" })
@Html.ValidationMessageFor(m => m.CommandLine)
<pre>@Model.Results</pre>
}
</div>