2011-05-01 11:05:28 +03:00
|
|
|
@model List<MissingEpisodeModel>
|
|
|
|
@using NzbDrone.Web.Models;
|
|
|
|
|
2011-05-03 09:03:49 +03:00
|
|
|
@section TitleContent{
|
|
|
|
Missing
|
|
|
|
}
|
|
|
|
|
2011-09-29 04:58:23 +03:00
|
|
|
<link href="../../Content/Grid.css" rel="stylesheet" type="text/css" />
|
2011-08-31 03:15:22 +03:00
|
|
|
|
2011-10-22 02:33:54 +03:00
|
|
|
@section ActionMenu{
|
|
|
|
<ul class="sub-menu">
|
|
|
|
<li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null)</li>
|
|
|
|
<li>@Ajax.ActionLink("Start Backlog Search", "BacklogSearch", "Command", null, null)</li>
|
|
|
|
</ul>
|
|
|
|
}
|
|
|
|
|
2011-05-01 11:05:28 +03:00
|
|
|
@section MainContent{
|
|
|
|
@{Html.Telerik().Grid<MissingEpisodeModel>().Name("missing")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.Columns(columns =>
|
|
|
|
{
|
2011-08-31 03:15:22 +03:00
|
|
|
columns.Bound(c => c.SeriesTitle)
|
|
|
|
.ClientTemplate("<a href=" +
|
|
|
|
Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) +
|
|
|
|
"><#= SeriesTitle #></a>")
|
|
|
|
.Title("Series Title");
|
2011-05-03 09:03:49 +03:00
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season").Width(40);
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode").Width(40);
|
2011-05-01 11:05:28 +03:00
|
|
|
columns.Bound(c => c.EpisodeTitle).Title("Episode Title");
|
2011-09-30 19:18:13 +03:00
|
|
|
columns.Bound(c => c.AirDate)
|
|
|
|
.ClientTemplate("<#= AirDateString #>")
|
2011-05-03 09:03:49 +03:00
|
|
|
.Title("Air Date")
|
|
|
|
.Width(80);
|
2011-08-31 03:15:22 +03:00
|
|
|
columns.Bound(c => c.EpisodeId)
|
|
|
|
.Title("Actions")
|
2011-09-01 02:56:25 +03:00
|
|
|
.ClientTemplate("<a href=\"../Episode/Season?episodeId=<#= EpisodeId #>\" onClick=\"searchForEpisode(<#= EpisodeId #>); return false;\"><img src='../../Content/Images/Search.png' alt='Search' title='Search for Episode' class='searchImage' /></a>")
|
2011-08-31 03:15:22 +03:00
|
|
|
.Width("40");
|
2011-05-01 11:05:28 +03: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 09:03:49 +03:00
|
|
|
.Filterable(filtering => filtering
|
|
|
|
.Filters(filters => filters
|
|
|
|
.Add(o => o.SeasonNumber).IsGreaterThan(0)))
|
|
|
|
|
2011-05-01 11:05:28 +03:00
|
|
|
.Pageable(
|
|
|
|
c =>
|
|
|
|
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
|
|
|
.Render();}
|
|
|
|
}
|