mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

~Rename javascript resource from RecentContentTab to SelectableContentTab for use in Search content picker as well. +Add Selectable to Search Content Picker +Add Select All to Search Content Picker
43 lines
1.8 KiB
Plaintext
43 lines
1.8 KiB
Plaintext
@using Orchard.Core.Contents.ViewModels;
|
|
@{
|
|
Script.Require("SelectableContentTab");
|
|
|
|
var typeDisplayName = Model.TypeDisplayName;
|
|
var pageTitle = T("Recent Content");
|
|
|
|
if (!string.IsNullOrWhiteSpace(typeDisplayName)) {
|
|
pageTitle = T("Manage {0} Content", typeDisplayName);
|
|
}
|
|
|
|
Layout.Title = pageTitle;
|
|
|
|
}
|
|
|
|
<div class="manage">
|
|
</div>
|
|
|
|
@using (Html.BeginFormAntiForgeryPost()) {
|
|
<fieldset class="bulk-actions">
|
|
<label for="filterResults" class="bulk-filter">@T("Show")</label>
|
|
<select id="filterResults" name="Options.SelectedFilter">
|
|
@Html.SelectOption((string)Model.Options.SelectedFilter, "", T("any (show all)").ToString())
|
|
@foreach(var filterOption in Model.Options.FilterOptions) {
|
|
@Html.SelectOption((string)Model.Options.SelectedFilter, (string)filterOption.Key, (string)filterOption.Value)
|
|
}
|
|
</select>
|
|
<label for="orderResults" class="bulk-order">@T("Ordered by")</label>
|
|
<select id="orderResults" name="Options.OrderBy">
|
|
@Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Created, T("recently created").ToString())
|
|
@Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Modified, T("recently modified").ToString())
|
|
@Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Published, T("recently published").ToString())
|
|
</select>
|
|
<button type="submit" name="submit.Filter" value="yes please">@T("Apply")</button>
|
|
</fieldset>
|
|
<fieldset class="contentItems bulk-items">
|
|
@Display(Model.ContentItems)
|
|
</fieldset>
|
|
@Html.Link(T("Add Selected").Text, "#", new { @class = "button addSelected"})
|
|
@Display(Model.Pager)
|
|
}
|
|
|