2010-10-21 03:49:23 +02:00
|
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NzbDrone.Core.Repository.Series>>" %>
|
2010-09-24 04:39:28 +02:00
|
|
|
|
2010-10-02 21:01:43 +02:00
|
|
|
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
2010-10-17 19:22:48 +02:00
|
|
|
<%@ Import Namespace="System.Globalization" %>
|
2010-09-24 04:39:28 +02:00
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
2010-10-02 21:01:43 +02:00
|
|
|
Series
|
|
|
|
</asp:Content>
|
2010-10-24 09:46:58 +02:00
|
|
|
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
|
2010-10-02 21:01:43 +02:00
|
|
|
<%
|
2011-03-07 08:48:47 +01:00
|
|
|
Html.RenderPartial("SubMenu");
|
2010-10-02 21:01:43 +02:00
|
|
|
%>
|
2010-09-24 04:39:28 +02:00
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
2010-10-02 21:01:43 +02:00
|
|
|
<%
|
|
|
|
Html.Telerik().Grid(Model)
|
|
|
|
.Name("Grid")
|
|
|
|
.Columns(columns =>
|
|
|
|
{
|
|
|
|
columns.Template(c =>
|
2011-03-31 03:42:27 +02:00
|
|
|
{
|
2010-10-02 21:01:43 +02:00
|
|
|
%>
|
2010-10-05 08:21:18 +02:00
|
|
|
<%:Html.ActionLink(c.Title, "Details", new {seriesId =c.SeriesId}) %>
|
2010-10-02 21:01:43 +02:00
|
|
|
<%
|
2011-03-31 03:42:27 +02:00
|
|
|
}).Title("Title");
|
|
|
|
columns.Bound(o => o.Seasons.Count).Title("Seasons");
|
|
|
|
columns.Bound(o => o.QualityProfile.Name).Title("Quality");
|
|
|
|
columns.Bound(o => o.Status);
|
|
|
|
columns.Bound(o => o.AirsDayOfWeek);
|
|
|
|
columns.Bound(o => o.Path);
|
|
|
|
|
2010-10-02 21:01:43 +02:00
|
|
|
})
|
|
|
|
.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(false))
|
|
|
|
.Render();
|
|
|
|
%>
|
2010-09-24 04:39:28 +02:00
|
|
|
</asp:Content>
|