|
|
@ -1,13 +1,10 @@
|
|
|
|
@model NzbDrone.Core.Repository.Series
|
|
|
|
@model NzbDrone.Core.Repository.Series
|
|
|
|
@using NzbDrone.Core.Repository
|
|
|
|
@using NzbDrone.Core.Repository
|
|
|
|
@using NzbDrone.Web.Models
|
|
|
|
@using NzbDrone.Web.Models
|
|
|
|
|
|
|
|
|
|
|
|
@section TitleContent{
|
|
|
|
@section TitleContent{
|
|
|
|
@Model.Title
|
|
|
|
@Model.Title
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section ActionMenu{
|
|
|
|
@section ActionMenu{
|
|
|
|
|
|
|
|
|
|
|
|
@{Html.Telerik().Menu().Name("SeriesMenu").Items(items =>
|
|
|
|
@{Html.Telerik().Menu().Name("SeriesMenu").Items(items =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
items.Add().Text("Edit").Action("Edit", "Series",
|
|
|
|
items.Add().Text("Edit").Action("Edit", "Series",
|
|
|
@ -20,7 +17,7 @@
|
|
|
|
"Series");
|
|
|
|
"Series");
|
|
|
|
items.Add().Text("Scan For Episodes on Disk").Action(
|
|
|
|
items.Add().Text("Scan For Episodes on Disk").Action(
|
|
|
|
"SyncEpisodesOnDisk", "Series",
|
|
|
|
"SyncEpisodesOnDisk", "Series",
|
|
|
|
new {seriesId = Model.SeriesId});
|
|
|
|
new { seriesId = Model.SeriesId });
|
|
|
|
items.Add().Text("Update Info").Action(
|
|
|
|
items.Add().Text("Update Info").Action(
|
|
|
|
"UpdateInfo", "Series",
|
|
|
|
"UpdateInfo", "Series",
|
|
|
|
new { seriesId = Model.SeriesId });
|
|
|
|
new { seriesId = Model.SeriesId });
|
|
|
@ -35,9 +32,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}).Render();}
|
|
|
|
}).Render();}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section MainContent{
|
|
|
|
@section MainContent{
|
|
|
|
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<div class="display-label">
|
|
|
|
<div class="display-label">
|
|
|
|
ID</div>
|
|
|
|
ID</div>
|
|
|
@ -65,12 +60,12 @@
|
|
|
|
@Model.Path</div>
|
|
|
|
@Model.Path</div>
|
|
|
|
</fieldset>
|
|
|
|
</fieldset>
|
|
|
|
@*Todo: This breaks when using SQLServer... thoughts?*@
|
|
|
|
@*Todo: This breaks when using SQLServer... thoughts?*@
|
|
|
|
|
|
|
|
|
|
|
|
@foreach (var season in Model.Seasons.Where(s => s.SeasonNumber > 0).Reverse())
|
|
|
|
@foreach (var season in Model.Seasons.Where(s => s.SeasonNumber > 0).Reverse())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<h3>Season @season.SeasonNumber</h3>
|
|
|
|
<h3>
|
|
|
|
|
|
|
|
Season @season.SeasonNumber</h3>
|
|
|
|
Season season1 = season;
|
|
|
|
Season season1 = season;
|
|
|
|
Html.Telerik().Grid<EpisodeModel>().Name("seasons_" + season.SeasonNumber)
|
|
|
|
Html.Telerik().Grid<EpisodeModel>().Name("seasons_" + season.SeasonNumber)
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
@ -81,7 +76,7 @@
|
|
|
|
"<input type='checkbox' name='checkedEpisodes' value='<#= EpisodeId #>' />")
|
|
|
|
"<input type='checkbox' name='checkedEpisodes' value='<#= EpisodeId #>' />")
|
|
|
|
.Title("")
|
|
|
|
.Title("")
|
|
|
|
.Width(1)
|
|
|
|
.Width(1)
|
|
|
|
.HtmlAttributes(new {style = "text-align:center"});
|
|
|
|
.HtmlAttributes(new { style = "text-align:center" });
|
|
|
|
|
|
|
|
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Width(10).Title("Episode");
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Width(10).Title("Episode");
|
|
|
|
columns.Bound(c => c.Title).Title("Title").Width(300);
|
|
|
|
columns.Bound(c => c.Title).Title("Title").Width(300);
|
|
|
@ -96,19 +91,16 @@
|
|
|
|
.DataBinding(
|
|
|
|
.DataBinding(
|
|
|
|
d =>
|
|
|
|
d =>
|
|
|
|
d.Ajax().Select("_AjaxSeasonGrid", "Series",
|
|
|
|
d.Ajax().Select("_AjaxSeasonGrid", "Series",
|
|
|
|
new RouteValueDictionary {{"seasonId", season1.SeasonId.ToString()}}))
|
|
|
|
new RouteValueDictionary { { "seasonId", season1.SeasonId.ToString() } }))
|
|
|
|
//.EnableCustomBinding(true)
|
|
|
|
//.EnableCustomBinding(true)
|
|
|
|
//.ClientEvents(e => e.OnDetailViewExpand("episodeDetailExpanded")) //Causes issues displaying the episode detail multiple times...
|
|
|
|
//.ClientEvents(e => e.OnDetailViewExpand("episodeDetailExpanded")) //Causes issues displaying the episode detail multiple times...
|
|
|
|
.ToolBar(
|
|
|
|
.ToolBar(
|
|
|
|
c =>
|
|
|
|
c =>
|
|
|
|
c.Custom().Text("Rename Season").Action("RenameSeason", "Series", new {seasonId = season1.SeasonId})
|
|
|
|
c.Custom().Text("Rename Season").Action("RenameSeason", "Series", new { seasonId = season1.SeasonId })
|
|
|
|
.ButtonType(GridButtonType.Text))
|
|
|
|
.ButtonType(GridButtonType.Text))
|
|
|
|
.Render();
|
|
|
|
.Render();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//Specials
|
|
|
|
|
|
|
|
@{var specialSeasons = Model.Seasons.Where(s => s.SeasonNumber == 0).FirstOrDefault();}
|
|
|
|
@{var specialSeasons = Model.Seasons.Where(s => s.SeasonNumber == 0).FirstOrDefault();}
|
|
|
|
|
|
|
|
|
|
|
|
@if (specialSeasons != null)
|
|
|
|
@if (specialSeasons != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
@ -123,14 +115,11 @@
|
|
|
|
columns.Bound(c => c.Title);
|
|
|
|
columns.Bound(c => c.Title);
|
|
|
|
columns.Bound(c => c.AirDate).Format("{0:d}").Width(0);
|
|
|
|
columns.Bound(c => c.AirDate).Format("{0:d}").Width(0);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate("<div><#= Overview #></div>"))
|
|
|
|
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false))
|
|
|
|
.Footer(false)
|
|
|
|
.Footer(false)
|
|
|
|
.Render();
|
|
|
|
.Render();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section Scripts{
|
|
|
|
@section Scripts{
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
function episodeDetailExpanded(e) {
|
|
|
|
function episodeDetailExpanded(e) {
|
|
|
|