2010-09-24 05:39:28 +03:00
|
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NzbDrone.Core.Repository.Series>>" %>
|
|
|
|
|
2010-10-02 22:01:43 +03:00
|
|
|
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
|
|
|
<%@ Import Namespace="NzbDrone.Core.Repository" %>
|
2010-09-24 05:39:28 +03:00
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
2010-10-02 22:01:43 +03:00
|
|
|
Series
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Menue" ContentPlaceHolderID="ActionMenue" runat="server">
|
|
|
|
<%
|
|
|
|
Html.Telerik().Menu().Name("telerikGrid").Items(items => { items.Add().Text("View Unmapped Folders").Action("Unmapped", "Series"); })
|
|
|
|
.Items(items => items.Add().Text("Sync With Disk").Action("Sync", "Series"))
|
|
|
|
.Render();
|
|
|
|
%>
|
2010-10-08 07:34:32 +03:00
|
|
|
|
|
|
|
sss
|
2010-09-24 05:39:28 +03:00
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
2010-10-02 22:01:43 +03:00
|
|
|
<%
|
|
|
|
|
|
|
|
|
|
|
|
Html.Telerik().Grid(Model)
|
|
|
|
.Name("Grid")
|
|
|
|
.Columns(columns =>
|
|
|
|
{
|
2010-10-05 09:21:18 +03:00
|
|
|
columns.Bound(o => o.SeriesId).Width(100);
|
2010-10-02 22:01:43 +03:00
|
|
|
columns.Template(c =>
|
|
|
|
{
|
|
|
|
%>
|
2010-10-05 09:21:18 +03:00
|
|
|
<%:Html.ActionLink(c.Title, "Details", new {seriesId =c.SeriesId}) %>
|
2010-10-02 22:01:43 +03:00
|
|
|
<%
|
|
|
|
}).Title("Title");
|
|
|
|
columns.Bound(o => o.Status);
|
|
|
|
columns.Bound(o => o.Path);
|
|
|
|
})
|
|
|
|
.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(false))
|
|
|
|
.Render();
|
|
|
|
%>
|
2010-09-24 05:39:28 +03:00
|
|
|
</asp:Content>
|