parent
613a49c3ea
commit
c45729a986
@ -1,27 +1,25 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<NzbDrone.Web.Models.SeriesSearchResultModel>>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<NzbDrone.Web.Models.SeriesSearchResultModel>>" %>
|
||||||
<%@ Import Namespace="NzbDrone.Core.Repository" %>
|
<%@ Import Namespace="NzbDrone.Core.Repository" %>
|
||||||
|
|
||||||
<div id="searchResults">
|
<div id="searchResults">
|
||||||
<fieldset class="tvDbSearchResults">
|
<fieldset>
|
||||||
<legend>Search Results</legend>
|
<legend>Search Results</legend>
|
||||||
|
|
||||||
<% if (Model.Count == 0)
|
<% if (Model.Count == 0)
|
||||||
{ %>
|
{ %>
|
||||||
<b>No results found for the series name</b>
|
<b>No results found for the series name</b>
|
||||||
<% }
|
<% }
|
||||||
%>
|
%>
|
||||||
|
|
||||||
|
|
||||||
<% int r = 0; %>
|
<% int r = 0; %>
|
||||||
<% foreach (var result in Model)
|
<% foreach (var result in Model)
|
||||||
{ %>
|
{ %>
|
||||||
<%: Html.RadioButton("selectedSeries", result.TvDbId, new { @class="searchRadio examplePart", id="searchRadio_" + r }) %>
|
<%: Html.RadioButton("selectedSeries", result.TvDbId, r ==0, new { @class="searchRadio examplePart", id="searchRadio_" + r }) %>
|
||||||
<b><%: Html.Label(result.TvDbName) %></b> (<%: Html.Label(result.FirstAired.ToString("MM/dd/yyyy"))%>)
|
<b>
|
||||||
|
<%:result.TvDbName + " (" + result.FirstAired.ToShortDateString()%>)
|
||||||
|
<%: Html.TextBox(result.TvDbName + "_text", result.TvDbName, new { id = result.TvDbId + "_text", style="display:none" }) %>
|
||||||
|
<%
|
||||||
|
|
||||||
<%: Html.TextBox(result.TvDbName + "_text", result.TvDbName, new { id = result.TvDbId + "_text", style="display:none" }) %>
|
r++;%>
|
||||||
<% r++;%>
|
<br />
|
||||||
<br />
|
<%
|
||||||
<%
|
|
||||||
} %>
|
} %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
@ -1,36 +1,31 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NzbDrone.Core.Repository.RootDir>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NzbDrone.Core.Repository.RootDir>" %>
|
||||||
<%@ Import Namespace="NzbDrone.Web.Helpers" %>
|
<%@ Import Namespace="NzbDrone.Web.Helpers" %>
|
||||||
|
|
||||||
<% using (Html.BeginCollectionItem("Directories"))
|
<% using (Html.BeginCollectionItem("Directories"))
|
||||||
{ %>
|
{ %>
|
||||||
|
<%
|
||||||
<%
|
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
|
||||||
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
|
|
||||||
//string sortable1 = String.Format("{0}_sortable1", idClean);
|
//string sortable1 = String.Format("{0}_sortable1", idClean);
|
||||||
%>
|
%>
|
||||||
|
<style type="text/css">
|
||||||
<style type="text/css">
|
.root_dir_text
|
||||||
.root_dir_text { width:300px; }
|
{
|
||||||
</style>
|
width: 300px;
|
||||||
|
}
|
||||||
<div class="rootDirSection">
|
</style>
|
||||||
|
<div class="rootDirSection">
|
||||||
<fieldset style="width:350px; height:16px; margin:0px; margin-top: 0px; border-color:#CCCCCD; -khtml-border-radius:8px; border-radius:8px; -moz-border-radius:8px; -webkit-border-radius:8px;">
|
<fieldset style="width: 350px; height: 16px; margin: 0px; margin-top: 0px; border-color: #CCCCCD;
|
||||||
|
-khtml-border-radius: 8px; border-radius: 8px; -moz-border-radius: 8px; -webkit-border-radius: 8px;">
|
||||||
<div>
|
<div>
|
||||||
<%: Html.CheckBoxFor(m => m.Default, new { @class = "defaultCheckbox" }) %>
|
<%: Html.TextBoxFor(m => m.Path, new { @class="root_dir_text" }) %>
|
||||||
<%: Html.TextBoxFor(m => m.Path, new { @class="root_dir_text" }) %>
|
<a href="#" class="deleteRow">
|
||||||
<a href="#" class="deleteRow"><img src="../../Content/Images/X.png" alt="Delete"/></a>
|
<img src="../../Content/Images/X.png" alt="Delete" /></a>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<%: Html.ValidationMessageFor(m => m.Path) %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="hiddenProfileDetails">
|
|
||||||
<%= Html.TextBoxFor(x => x.RootDirId, new { @style = "display:none" })%>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<%: Html.ValidationMessageFor(m => m.Path) %>
|
||||||
|
</div>
|
||||||
|
<div class="hiddenProfileDetails">
|
||||||
|
<%= Html.TextBoxFor(x => x.Id, new { @style = "display:none" })%>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
<% } %>
|
<% } %>
|
Loading…
Reference in new issue