2011-03-11 09:04:56 +00: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 07:40:23 +00:00
|
|
|
<fieldset class="tvDbSearchResults">
|
2011-03-11 09:04:56 +00:00
|
|
|
<legend>Search Results</legend>
|
2011-03-15 15:29:14 +00:00
|
|
|
|
2011-03-17 07:40:23 +00:00
|
|
|
<% if (Model.Count == 0)
|
|
|
|
{ %>
|
|
|
|
<b>No results found for the series name</b>
|
|
|
|
<% }
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
2011-03-15 15:29:14 +00:00
|
|
|
<% int r = 0; %>
|
2011-03-11 09:04:56 +00:00
|
|
|
<% foreach (var result in Model)
|
|
|
|
{ %>
|
2011-03-15 15:29:14 +00: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 09:04:56 +00:00
|
|
|
<br />
|
2011-03-15 15:29:14 +00:00
|
|
|
<%
|
|
|
|
} %>
|
2011-03-11 09:04:56 +00:00
|
|
|
</fieldset>
|
2011-03-17 07:40:23 +00:00
|
|
|
</div>
|