2011-07-27 22:59:48 +00:00
|
|
|
@using System.Collections
|
|
|
|
@using NzbDrone.Web.Models
|
|
|
|
@using System.Web.Mvc.Html
|
|
|
|
@model ExistingSeriesModel
|
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
2011-08-23 20:31:28 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.existingSeries
|
|
|
|
{
|
2011-12-06 00:49:11 +00:00
|
|
|
width: 548px;
|
2011-08-23 20:31:28 +00:00
|
|
|
border-color: #f2f2f2;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
margin: 0px 10px 10px 0px;
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2011-12-06 00:49:11 +00:00
|
|
|
display: block;
|
2011-08-23 20:31:28 +00:00
|
|
|
}
|
|
|
|
.masterQualitySelector
|
|
|
|
{
|
|
|
|
left: 202px;
|
|
|
|
position: relative;
|
|
|
|
}
|
2011-12-05 03:15:02 +00:00
|
|
|
|
|
|
|
.seriesPathValue
|
|
|
|
{
|
|
|
|
display: block;
|
|
|
|
}
|
2011-12-07 01:21:32 +00:00
|
|
|
|
|
|
|
.existingSeriesContainer
|
|
|
|
{
|
|
|
|
position: relative;
|
|
|
|
}
|
2011-08-23 20:31:28 +00:00
|
|
|
</style>
|
|
|
|
|
2011-07-27 22:59:48 +00:00
|
|
|
@if (Model.ExistingSeries.Count == 0)
|
|
|
|
{
|
|
|
|
<h3 style="color: tomato">
|
|
|
|
No series available. Try adding a new Root Folder.
|
|
|
|
</h3>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<h3>
|
|
|
|
Series Ready to be added.
|
|
|
|
@Html.DropDownList(Guid.NewGuid().ToString(), Model.Quality, new { @class = "qualitySelector masterQualitySelector" })
|
|
|
|
</h3>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
2011-12-05 03:15:02 +00:00
|
|
|
|
2011-09-09 03:52:25 +00:00
|
|
|
@foreach (var series in Model.ExistingSeries)
|
2011-07-27 22:59:48 +00:00
|
|
|
{
|
2011-12-05 03:15:02 +00:00
|
|
|
<div class="existingSeries">
|
|
|
|
<span class="seriesPathValue">
|
|
|
|
@Html.Label(series.Item1)
|
|
|
|
</span>
|
2011-12-07 01:21:32 +00:00
|
|
|
<div class="existingSeriesContainer">
|
|
|
|
<input class="seriesLookup" type="text" style="width: 400px;" value="@series.Item2" />
|
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" })
|
2011-12-05 03:15:02 +00:00
|
|
|
|
2011-12-07 01:21:32 +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-07-27 22:59:48 +00:00
|
|
|
}
|