- Some getting used to code blocks in razor

--HG--
branch : dev
This commit is contained in:
Suha Can
2010-09-14 16:24:10 -07:00
parent 9f68683eb7
commit 0bd5f86b4a
2 changed files with 10 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
@model Orchard.Media.ViewModels.MediaFolderIndexViewModel
<h1>@Html.TitleForPage(T("Manage Media Folders").ToString())</h1>
@using(Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset class="bulk-actions">
<label for="publishActions">@T("Actions:")</label>
@@ -47,4 +46,3 @@
}
</table>
</fieldset>
}

View File

@@ -1,7 +1,9 @@
@model Orchard.Tags.ViewModels.TagsAdminIndexViewModel
@using Orchard.Tags.ViewModels
<h1>@Html.TitleForPage(T("Manage Tags").ToString()) </h1>
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset class="bulk-actions">
@@ -26,11 +28,12 @@
<th scope="col">@T("Name")</th>
<th scope="col"></th>
</thead>
@foreach (var tagEntry in Model.Tags) {
@{var tagIndex = 0;}
@foreach (var tagEntry in Model.Tags) {
<tr>
<td>
<input type="hidden" value="@Model.Tags[tagIndex].Tag.Id" name="@Html.NameOf(m => m.Tags[ti].Tag.Id)"/>
<input type="checkbox" value="true" name="@Html.NameOf(m => m.Tags[ti].IsChecked)"/>
<input type="hidden" value="@Model.Tags[tagIndex].Tag.Id" name="@Html.NameOf(m => m.Tags[tagIndex].Tag.Id)"/>
<input type="checkbox" value="true" name="@Html.NameOf(m => m.Tags[tagIndex].IsChecked)"/>
</td>
<td>
@Html.ActionLink(Html.Encode(tagEntry.Tag.TagName), "Search", new {id = tagEntry.Tag.Id})
@@ -39,7 +42,7 @@
@Html.ActionLink(T("Edit").ToString(), "Edit", new {id = tagEntry.Tag.Id})
</td>
</tr>
}
tagIndex = tagIndex + 1;
}
</table>
</fieldset>
}
</fieldset>