1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-06 08:07:20 +02:00
Radarr/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml
Mark McDowall 359f6ea012 Bug: Fixed years being picked up as 4-digit season/episode combo when using the folder name only. a year wrapped with brackets '()' or '[]' will be treated as a year.
Bug: Fixed display issue for series with a period in them when adding existing series, Html.Label(path) would only show text from after the period.
2012-01-12 15:40:28 -08:00

61 lines
1.5 KiB
Plaintext

@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">
<label>@series.Item1</label>
</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>
}
}