|
|
@ -9,8 +9,8 @@ Upcoming
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@section MainContent{
|
|
|
|
@section MainContent{
|
|
|
|
<div id="yesterday">
|
|
|
|
<div id="yesterday">
|
|
|
|
<h2>
|
|
|
|
<h2>Yesterday</h2>
|
|
|
|
Yesterday</h2>
|
|
|
|
<div class="grid-container">
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
|
|
|
|
"No watched shows aired yesterday")
|
|
|
|
"No watched shows aired yesterday")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
@ -31,17 +31,24 @@ Upcoming
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"</fieldset>"
|
|
|
|
"</fieldset>"
|
|
|
|
))
|
|
|
|
))
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
clientEvents.OnDataBinding("grid_bind");
|
|
|
|
|
|
|
|
clientEvents.OnDataBound("grid_bound");
|
|
|
|
|
|
|
|
})
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming"))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
//.Filterable()
|
|
|
|
//.Filterable()
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
|
|
|
|
<span class="grid-loader"><img src="@Url.Content( "~/Content/Images/Loading.gif" )" alt="Loading"/> Loading...</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<div id="today">
|
|
|
|
<div id="today">
|
|
|
|
<h2>
|
|
|
|
<h2>Today</h2>
|
|
|
|
Today</h2>
|
|
|
|
<div class="grid-container">
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.Columns(columns =>
|
|
|
|
.Columns(columns =>
|
|
|
@ -61,14 +68,21 @@ Upcoming
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"</fieldset>"
|
|
|
|
"</fieldset>"
|
|
|
|
))
|
|
|
|
))
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
clientEvents.OnDataBinding("grid_bind");
|
|
|
|
|
|
|
|
clientEvents.OnDataBound("grid_bound");
|
|
|
|
|
|
|
|
})
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming"))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
|
|
|
|
<span class="grid-loader"><img src="@Url.Content( "~/Content/Images/Loading.gif" )" alt="Loading"/> Loading...</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<div id="tomorrow">
|
|
|
|
<div id="tomorrow">
|
|
|
|
<h2>
|
|
|
|
<h2>Tomorrow</h2>
|
|
|
|
Tomorrow</h2>
|
|
|
|
<div class="grid-container">
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Tomorrow").NoRecordsTemplate(
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Tomorrow").NoRecordsTemplate(
|
|
|
|
"No watched shows airing tomorrow")
|
|
|
|
"No watched shows airing tomorrow")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
@ -89,14 +103,21 @@ Upcoming
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"</fieldset>"
|
|
|
|
"</fieldset>"
|
|
|
|
))
|
|
|
|
))
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
clientEvents.OnDataBinding("grid_bind");
|
|
|
|
|
|
|
|
clientEvents.OnDataBound("grid_bound");
|
|
|
|
|
|
|
|
})
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingTomorrow", "Upcoming"))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingTomorrow", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
|
|
|
|
<span class="grid-loader"><img src="@Url.Content( "~/Content/Images/Loading.gif" )" alt="Loading"/> Loading...</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<div id="week">
|
|
|
|
<div id="week">
|
|
|
|
<h2>
|
|
|
|
<h2>Future Forecast</h2>
|
|
|
|
Future Forecast</h2>
|
|
|
|
<div class="grid-container">
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
|
|
|
|
"No watched shows airing in the next week...")
|
|
|
|
"No watched shows airing in the next week...")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
@ -117,8 +138,15 @@ Upcoming
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"</fieldset>"
|
|
|
|
"</fieldset>"
|
|
|
|
))
|
|
|
|
))
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
clientEvents.OnDataBinding("grid_bind");
|
|
|
|
|
|
|
|
clientEvents.OnDataBound("grid_bound");
|
|
|
|
|
|
|
|
})
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming"))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
|
|
|
|
<span class="grid-loader"><img src="@Url.Content( "~/Content/Images/Loading.gif" )" alt="Loading"/> Loading...</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|