mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-11 13:32:42 +01:00
36 lines
1.6 KiB
Plaintext
36 lines
1.6 KiB
Plaintext
@model List<MissingEpisodeModel>
|
|
@using NzbDrone.Web.Models;
|
|
|
|
@section TitleContent{
|
|
Missing
|
|
}
|
|
|
|
@section MainContent{
|
|
@{Html.Telerik().Grid<MissingEpisodeModel>().Name("missing")
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.SeriesTitle).Title("Series Name");
|
|
columns.Bound(c => c.SeasonNumber).Title("Season").Width(40);
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode").Width(40);
|
|
columns.Bound(c => c.EpisodeTitle).Title("Episode Title");
|
|
columns.Bound(c => c.AirDate).Format("{0:d}")
|
|
.Title("Air Date")
|
|
.Width(80);
|
|
})
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
"<fieldset>" +
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
"</fieldset>"
|
|
))
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBinding", "Missing"))
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Descending()).Enabled(true))
|
|
.Filterable(filtering => filtering
|
|
.Filters(filters => filters
|
|
.Add(o => o.SeasonNumber).IsGreaterThan(0)))
|
|
|
|
.Pageable(
|
|
c =>
|
|
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
|
.Render();}
|
|
} |