2011-03-11 10:04:56 +01:00
|
|
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<NzbDrone.Web.Models.SeriesSearchResultModel>>" %>
|
|
|
|
<%@ Import Namespace="NzbDrone.Core.Repository" %>
|
|
|
|
|
|
|
|
<div id="searchResults">
|
2011-03-17 08:40:23 +01:00
|
|
|
<fieldset class="tvDbSearchResults">
|
2011-03-11 10:04:56 +01:00
|
|
|
<legend>Search Results</legend>
|
2011-03-15 16:29:14 +01:00
|
|
|
|
2011-03-17 08:40:23 +01:00
|
|
|
<% if (Model.Count == 0)
|
|
|
|
{ %>
|
|
|
|
<b>No results found for the series name</b>
|
|
|
|
<% }
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
2011-03-15 16:29:14 +01:00
|
|
|
<% int r = 0; %>
|
2011-03-11 10:04:56 +01:00
|
|
|
<% foreach (var result in Model)
|
|
|
|
{ %>
|
2011-03-15 16:29:14 +01:00
|
|
|
<%: Html.RadioButton("selectedSeries", result.TvDbId, new { @class="searchRadio examplePart", id="searchRadio_" + r }) %>
|
|
|
|
<b><%: Html.Label(result.TvDbName) %></b> (<%: Html.Label(result.FirstAired.ToString("MM/dd/yyyy"))%>)
|
|
|
|
|
|
|
|
<%: Html.TextBox(result.TvDbName + "_text", result.TvDbName, new { id = result.TvDbId + "_text", style="display:none" }) %>
|
|
|
|
<% r++;%>
|
2011-03-11 10:04:56 +01:00
|
|
|
<br />
|
2011-03-15 16:29:14 +01:00
|
|
|
<%
|
|
|
|
} %>
|
2011-03-11 10:04:56 +01:00
|
|
|
</fieldset>
|
2011-03-17 08:40:23 +01:00
|
|
|
</div>
|