mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-29 19:26:06 +00:00
c40f18e66f
Fixed a config saving issue in the SettingsController. Added bindings in Central dispatch for SabProvider and HttpProvider
37 lines
1.5 KiB
Text
37 lines
1.5 KiB
Text
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NzbDrone.Core.Repository.Series>>" %>
|
|
|
|
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
|
<%@ Import Namespace="System.Globalization" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
Series
|
|
</asp:Content>
|
|
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" 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"))
|
|
.Items(items => items.Add().Text("Start RSS Sync").Action("RssSync", "Series"))
|
|
.Render();
|
|
%>
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%
|
|
|
|
|
|
Html.Telerik().Grid(Model)
|
|
.Name("Grid")
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(o => o.SeriesId).Width(100);
|
|
columns.Template(c =>
|
|
{
|
|
%>
|
|
<%:Html.ActionLink(c.Title, "Details", new {seriesId =c.SeriesId}) %>
|
|
<%
|
|
}).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();
|
|
%>
|
|
</asp:Content>
|