mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-30 19:45:57 +00:00
5e386a2bc7
made add series page more awsome.
60 lines
1.5 KiB
Text
60 lines
1.5 KiB
Text
@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;
|
|
}
|
|
|
|
.seriesPathValue
|
|
{
|
|
display: block;
|
|
}
|
|
|
|
.existingSeriesContainer
|
|
{
|
|
position: relative;
|
|
}
|
|
</style>
|
|
@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" })
|
|
|
|
foreach (var series in Model.ExistingSeries)
|
|
{
|
|
<div class="existingSeries">
|
|
<span class="seriesPathValue">
|
|
@Html.Label(series.Item1)
|
|
</span>
|
|
<div class="existingSeriesContainer">
|
|
<input class="seriesLookup" type="text" style="width: 400px;" value="@series.Item2" />
|
|
@Html.Hidden("seriesId", series.Item3, new { @class = "seriesId" })
|
|
@Html.DropDownList(Guid.NewGuid().ToString(), Model.Quality, new { @class = "qualitySelector" })
|
|
<button class="addExistingButton">
|
|
Add</button>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|