2011-05-01 10:05:28 +02:00
|
|
|
@model List<MissingEpisodeModel>
|
|
|
|
@using NzbDrone.Web.Models;
|
|
|
|
|
2011-05-03 08:03:49 +02:00
|
|
|
@section TitleContent{
|
|
|
|
Missing
|
|
|
|
}
|
|
|
|
|
2011-05-01 10:05:28 +02:00
|
|
|
@section MainContent{
|
|
|
|
@{Html.Telerik().Grid<MissingEpisodeModel>().Name("missing")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.Columns(columns =>
|
|
|
|
{
|
|
|
|
columns.Bound(c => c.SeriesTitle).Title("Series Name");
|
2011-05-03 08:03:49 +02:00
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season").Width(40);
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode").Width(40);
|
2011-05-01 10:05:28 +02:00
|
|
|
columns.Bound(c => c.EpisodeTitle).Title("Episode Title");
|
2011-05-03 08:03:49 +02:00
|
|
|
columns.Bound(c => c.AirDate).Format("{0:d}")
|
|
|
|
.Title("Air Date")
|
|
|
|
.Width(80);
|
2011-06-02 03:16:49 +02:00
|
|
|
columns.Bound(o => o.EpisodeId).Title("")
|
|
|
|
.ClientTemplate("<a href='#Search' onClick=\"searchForEpisode('<#= EpisodeId #>'); return false;\" >Search</a>");
|
2011-05-01 10:05:28 +02:00
|
|
|
})
|
|
|
|
.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))
|
2011-05-03 08:03:49 +02:00
|
|
|
.Filterable(filtering => filtering
|
|
|
|
.Filters(filters => filters
|
|
|
|
.Add(o => o.SeasonNumber).IsGreaterThan(0)))
|
|
|
|
|
2011-05-01 10:05:28 +02:00
|
|
|
.Pageable(
|
|
|
|
c =>
|
|
|
|
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
|
|
|
.Render();}
|
|
|
|
}
|