1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml

61 lines
1.5 KiB
Plaintext
Raw Normal View History

2011-07-28 01:59:48 +03:00
@using System.Collections
@using NzbDrone.Web.Models
@using System.Web.Mvc.Html
@model ExistingSeriesModel
@{
Layout = null;
}
<style>
.existingSeries
{
border-color: #f2f2f2;
border-width: 1px;
border-style: solid;
background-color: #f2f2f2;
margin: 0px 10px 10px 0px;
padding: 5px;
display: block;
}
.masterQualitySelector
{
left: 415px;
position: relative;
}
2011-12-05 06:15:02 +03:00
.seriesPathValue
{
display: block;
}
.existingSeriesContainer
{
position: relative;
}
</style>
2011-07-28 01:59:48 +03:00
@if (Model.ExistingSeries.Count == 0)
{
<h3 style="color: tomato">
No series available. Try adding a new Root Folder.
</h3>
}
else
{
@Html.DropDownList(Guid.NewGuid().ToString(), Model.Quality, new { @class = "qualitySelector masterQualitySelector" })
2011-12-05 06:15:02 +03:00
foreach (var series in Model.ExistingSeries)
{
2011-12-05 06:15:02 +03:00
<div class="existingSeries">
<span class="seriesPathValue">
<label>@series.Item1</label>
2011-12-05 06:15:02 +03:00
</span>
<div class="existingSeriesContainer">
<input class="seriesLookup" type="text" style="width: 400px;" value="@series.Item2" />
@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" })
<button class="addExistingButton">
Add</button>
2011-07-28 01:59:48 +03:00
</div>
2011-12-05 06:15:02 +03:00
</div>
}
2011-07-28 01:59:48 +03:00
}