2011-07-27 22:59:48 +00:00
@using System.Collections
@using NzbDrone.Web.Models
@using System.Web.Mvc.Html
@model ExistingSeriesModel
@{
Layout = null;
}
2012-02-25 05:28:29 +00:00
2012-08-30 00:57:23 +00:00
@if (Model == null)
{
<h2 style="color: tomato">
Error searching TheTVDB, please try again later.
</h2>
}
else if (!Model.ExistingSeries.Any())
2011-07-27 22:59:48 +00:00
{
2012-03-02 02:37:43 +00:00
<h2 style="color: tomato">
2011-07-27 22:59:48 +00:00
No series available. Try adding a new Root Folder.
2012-03-02 02:37:43 +00:00
</h2>
2011-07-27 22:59:48 +00:00
}
else
{
2011-12-08 05:30:47 +00:00
@Html.DropDownList(Guid.NewGuid().ToString(), Model.Quality, new { @class = "qualitySelector masterQualitySelector" })
2011-12-05 03:15:02 +00:00
2012-09-19 07:07:19 +00:00
@Html.TextBox(Guid.NewGuid().ToString(), "", new { type="date", @class = "jQuery-datepicker aired-after-master", title = "Skip episodes that aired before the choosen date" })
2012-09-19 06:06:09 +00:00
2011-12-08 05:30:47 +00:00
foreach (var series in Model.ExistingSeries)
{
2011-12-05 03:15:02 +00:00
<div class="existingSeries">
<span class="seriesPathValue">
2012-01-12 16:41:58 +00:00
<label>@series.Item1</label>
2011-12-05 03:15:02 +00:00
</span>
2011-12-07 01:21:32 +00:00
<div class="existingSeriesContainer">
2012-09-19 06:06:09 +00:00
<input class="seriesLookup" type="text" style="width: 400px;" value="@series.Item2" placeholder="Series Title" />
2011-09-09 03:52:25 +00:00
@Html.Hidden("seriesId", series.Item3, new { @class = "seriesId" })
2011-07-27 22:59:48 +00:00
@Html.DropDownList(Guid.NewGuid().ToString(), Model.Quality, new { @class = "qualitySelector" })
2012-09-19 07:07:19 +00:00
@Html.TextBox(Guid.NewGuid().ToString(), "", new { type="date", @class = "jQuery-datepicker aired-after", title = "Only download episodes that aired after the choosen date" })
2011-12-08 05:30:47 +00:00
<button class="addExistingButton">
Add</button>
2011-07-27 22:59:48 +00:00
</div>
2011-12-05 03:15:02 +00:00
</div>
2011-12-08 05:30:47 +00:00
}
2011-07-27 22:59:48 +00:00
}