mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 09:18:34 +00:00
359f6ea012
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.
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">
|
|
<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>
|
|
}
|
|
}
|