Fixing 17327: Add BlogArchives in Widget cause site crash [4182 (87e9e18ad238)]

--HG--
branch : 1.x
This commit is contained in:
Suha Can
2011-03-28 12:48:09 -07:00
parent ee38c329e9
commit 03df768aa5

View File

@@ -6,10 +6,10 @@
<fieldset>
<div>
@Html.LabelFor(m => m.Slug, T("For Blog"))
<select id="@Html.FieldIdFor(m => m.Slug)" name="@Html.FieldNameFor(m => m.Slug)">
@Html.LabelFor(m => m.Path, T("For Blog"))
<select id="@Html.FieldIdFor(m => m.Path)" name="@Html.FieldNameFor(m => m.Path)">
@foreach(BlogPart blog in Model.Blogs) {
@Html.SelectOption(Model.Slug, blog.As<RoutePart>().Slug, blog.Name)
@Html.SelectOption(Model.Path, blog.As<RoutePart>().Slug, blog.Name)
}
</select>
<span class="hint">@T("Select which blog you want to display the archives for")</span>