2011-07-28 01:59:48 +03:00
|
|
|
@using System.Collections
|
|
|
|
@using NzbDrone.Web.Models
|
|
|
|
@using System.Web.Mvc.Html
|
|
|
|
@model ExistingSeriesModel
|
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
2012-02-25 08:28:29 +03:00
|
|
|
|
2011-07-28 01:59:48 +03:00
|
|
|
@if (Model.ExistingSeries.Count == 0)
|
|
|
|
{
|
2012-03-02 05:37:43 +03:00
|
|
|
<h2 style="color: tomato">
|
2011-07-28 01:59:48 +03:00
|
|
|
No series available. Try adding a new Root Folder.
|
2012-03-02 05:37:43 +03:00
|
|
|
</h2>
|
2011-07-28 01:59:48 +03:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2011-12-08 08:30:47 +03:00
|
|
|
@Html.DropDownList(Guid.NewGuid().ToString(), Model.Quality, new { @class = "qualitySelector masterQualitySelector" })
|
2011-12-05 06:15:02 +03:00
|
|
|
|
2011-12-08 08:30:47 +03:00
|
|
|
foreach (var series in Model.ExistingSeries)
|
|
|
|
{
|
2011-12-05 06:15:02 +03:00
|
|
|
<div class="existingSeries">
|
|
|
|
<span class="seriesPathValue">
|
2012-01-12 19:41:58 +03:00
|
|
|
<label>@series.Item1</label>
|
2011-12-05 06:15:02 +03:00
|
|
|
</span>
|
2011-12-07 04:21:32 +03:00
|
|
|
<div class="existingSeriesContainer">
|
|
|
|
<input class="seriesLookup" type="text" style="width: 400px;" value="@series.Item2" />
|
2011-09-09 06:52:25 +03:00
|
|
|
@Html.Hidden("seriesId", series.Item3, new { @class = "seriesId" })
|
2011-07-28 01:59:48 +03:00
|
|
|
@Html.DropDownList(Guid.NewGuid().ToString(), Model.Quality, new { @class = "qualitySelector" })
|
2011-12-08 08:30:47 +03:00
|
|
|
<button class="addExistingButton">
|
|
|
|
Add</button>
|
2011-07-28 01:59:48 +03:00
|
|
|
</div>
|
2011-12-05 06:15:02 +03:00
|
|
|
</div>
|
2011-12-08 08:30:47 +03:00
|
|
|
}
|
2011-07-28 01:59:48 +03:00
|
|
|
}
|