2011-05-10 06:32:33 +00:00
|
|
|
@using NzbDrone.Core.Repository;
|
|
|
|
@using NzbDrone.Web.Models;
|
|
|
|
@model IEnumerable<NzbDrone.Core.Repository.Series>
|
2011-04-21 07:14:47 +00:00
|
|
|
|
|
|
|
@section TitleContent{
|
|
|
|
Series
|
|
|
|
}
|
|
|
|
|
|
|
|
@section ActionMenu{
|
|
|
|
@{Html.RenderPartial("SubMenu");}
|
|
|
|
}
|
|
|
|
|
|
|
|
@section MainContent{
|
2011-05-10 06:32:33 +00:00
|
|
|
@{Html.Telerik().Grid<SeriesModel>().Name("Grid")
|
2011-04-21 07:14:47 +00:00
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
2011-05-10 06:32:33 +00:00
|
|
|
.DataKeys(keys =>
|
|
|
|
{
|
|
|
|
keys.Add(p => p.SeriesId);
|
|
|
|
})
|
|
|
|
.DataBinding(data => data.Ajax()
|
|
|
|
.Select("_AjaxSeriesGrid", "Series")
|
|
|
|
.Update("_SaveAjaxSeriesEditing", "Series"))
|
2011-04-21 07:14:47 +00:00
|
|
|
.Columns(columns =>
|
|
|
|
{
|
2011-05-10 06:32:33 +00:00
|
|
|
columns.Bound(o => o.Title)
|
|
|
|
.ClientTemplate("<a href=" +
|
|
|
|
Url.Action("Details", "Series", new {seriesId = "<#= SeriesId #>"}) +
|
|
|
|
"><#= Title #></a>");
|
|
|
|
columns.Bound(o => o.SeasonsCount).Title("Seasons");
|
|
|
|
columns.Bound(o => o.QualityProfileName).Title("Quality");
|
2011-04-21 07:14:47 +00:00
|
|
|
columns.Bound(o => o.Status);
|
|
|
|
columns.Bound(o => o.AirsDayOfWeek);
|
|
|
|
columns.Bound(o => o.Path);
|
2011-05-10 06:32:33 +00:00
|
|
|
columns.Command(commands => commands.Edit().ButtonType(GridButtonType.Image)).Title("Edit").Width(50);
|
|
|
|
|
2011-04-21 07:14:47 +00:00
|
|
|
})
|
2011-05-10 06:32:33 +00:00
|
|
|
.Editable(editor => editor.Mode(GridEditMode.PopUp))
|
|
|
|
.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(true))
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate("<div style=\"width:95%\"><#= Overview #></div>"))
|
2011-04-21 07:14:47 +00:00
|
|
|
.Render();}
|
|
|
|
}
|