sonarr-repo-only/NzbDrone.Web/Views/Series/Details.aspx

53 lines
2.0 KiB
Plaintext
Raw Normal View History

2010-09-24 07:14:42 +00:00
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NzbDrone.Core.Repository.Series>" %>
2010-10-05 06:21:18 +00:00
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
2010-09-24 07:14:42 +00:00
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
2010-10-05 06:21:18 +00:00
<%: Model.Title %>
2010-09-24 07:14:42 +00:00
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<fieldset>
2010-10-05 06:21:18 +00:00
<div class="display-label">
ID</div>
<div class="display-field">
<%: Model.SeriesId %></div>
<div class="display-label">
Overview</div>
<div class="display-field">
<%: Model.Overview %></div>
<div class="display-label">
Status</div>
<div class="display-field">
<%: Model.Status %></div>
<div class="display-label">
AirTimes</div>
<div class="display-field">
<%: Model.AirTimes %></div>
<div class="display-label">
Language</div>
<div class="display-field">
<%: Model.Language.ToUpper() %></div>
<div class="display-label">
Location</div>
<div class="display-field">
<%: Model.Path %></div>
2010-09-24 07:14:42 +00:00
</fieldset>
2010-10-05 06:21:18 +00:00
<%= Html.Telerik().Grid(Model.Episodes)
.Name("Episodes")
.Columns(columns =>
{
columns.Bound(c => c.EpisodeNumber).Width(10);
columns.Bound(c => c.Title);
columns.Bound(c => c.AirDate).Format("{0:d}").Width(150);
})
.Groupable(grouping => grouping.Groups(groups => groups.Add(c => c.SeasonNumber)))
.Sortable(rows=>rows
.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)))
%>
2010-09-24 07:14:42 +00:00
<p>
2010-10-05 06:21:18 +00:00
<%-- <%: Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) %> |--%>
2010-09-24 07:14:42 +00:00
<%: Html.ActionLink("Back to List", "Index") %>
2010-10-05 06:21:18 +00:00
<%: Html.ActionLink("Load Episodes", "LoadEpisodes", new{seriesId= Model.SeriesId}) %>
2010-09-24 07:14:42 +00:00
</p>
</asp:Content>