mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 20:13:52 +08:00
Fixing 17327: Add BlogArchives in Widget cause site crash [4182 (87e9e18ad238)]
--HG-- branch : 1.x
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user