sonarr-repo-only/NzbDrone.Web/Views/Series/SeriesSearchResults.ascx

31 lines
1.0 KiB
Plaintext
Raw Normal View History

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<NzbDrone.Web.Models.SeriesSearchResultModel>>" %>
<div id="searchResults">
<fieldset>
<legend>Search Results</legend>
2011-04-10 02:44:01 +00:00
<%
if (Model.Count == 0)
{%>
<b>No results found for the series name</b>
2011-04-10 02:44:01 +00:00
<%
}
%>
<%
int r = 0;%>
<%
foreach (var result in Model)
{%>
<%:Html.RadioButton("selectedSeries", result.TvDbId, r == 0,
new {@class = "searchRadio examplePart", id = "searchRadio_" + r})%>
<b>
<%:result.TvDbName + " (" + result.FirstAired.ToShortDateString()%>)
2011-04-10 02:44:01 +00:00
<%:Html.TextBox(result.TvDbName + "_text", result.TvDbName,
new {id = result.TvDbId + "_text", style = "display:none"})%>
<%
r++;%>
<br />
<%
2011-04-10 02:44:01 +00:00
}%>
</fieldset>
</div>