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-29 01:38:05 +02:00
|
|
|
<fieldset>
|
2011-03-11 10:04:56 +01:00
|
|
|
<legend>Search Results</legend>
|
2011-03-17 08:40:23 +01:00
|
|
|
<% if (Model.Count == 0)
|
|
|
|
{ %>
|
2011-03-29 01:38:05 +02:00
|
|
|
<b>No results found for the series name</b>
|
2011-03-17 08:40:23 +01:00
|
|
|
<% }
|
|
|
|
%>
|
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-29 01:38:05 +02:00
|
|
|
<%: Html.RadioButton("selectedSeries", result.TvDbId, r ==0, new { @class="searchRadio examplePart", id="searchRadio_" + r }) %>
|
|
|
|
<b>
|
|
|
|
<%:result.TvDbName + " (" + result.FirstAired.ToShortDateString()%>)
|
|
|
|
<%: Html.TextBox(result.TvDbName + "_text", result.TvDbName, new { id = result.TvDbId + "_text", style="display:none" }) %>
|
|
|
|
<%
|
|
|
|
|
|
|
|
r++;%>
|
|
|
|
<br />
|
|
|
|
<%
|
2011-03-15 16:29:14 +01:00
|
|
|
} %>
|
2011-03-11 10:04:56 +01:00
|
|
|
</fieldset>
|
2011-03-29 01:38:05 +02:00
|
|
|
</div>
|