mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-28 23:06:43 -04:00
BacklogStatus added to individually control which series are included in backlog searches. Applies to Backlog and RecentBacklog jobs. Editable in Series/MassEdit and Series Edit.
This commit is contained in:
@@ -30,5 +30,9 @@
|
||||
<span class="small">@Html.DescriptionFor(m => m.Path)</span>
|
||||
</label>
|
||||
@Html.TextBoxFor(m => m.Path, new { @class = "inputClass" })
|
||||
<label class="labelClass">@Html.LabelFor(m => m.BacklogStatus)
|
||||
<span class="small">@Html.DescriptionFor(m => m.BacklogStatus)</span>
|
||||
</label>
|
||||
@Html.DropDownListFor(m => m.BacklogStatus, (SelectList)ViewData["BacklogStatusSelectList"], new { @class = "inputClass" })
|
||||
</div>
|
||||
</div>
|
||||
@@ -30,6 +30,10 @@
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
td .backlogStatus {
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-width: 1px;
|
||||
@@ -67,6 +71,7 @@
|
||||
<th width="210px">Quality</th>
|
||||
<th class="checkboxColumn">Monitored</th>
|
||||
<th class="checkboxColumn">Season Folder</th>
|
||||
<th width="100px">Backlog Status</th>
|
||||
<th width="310px">Path</th>
|
||||
</tr>
|
||||
|
||||
@@ -91,6 +96,10 @@
|
||||
<span class="small">Should downloaded episodes be stored in season folders?</span>
|
||||
</label>
|
||||
@Html.DropDownList("masterSeasonFolder", (SelectList)ViewData["BoolSelectList"], new { @class = "inputClass" })
|
||||
<label class="labelClass">Backlog Status
|
||||
<span class="small">Should NzbDrone perform backlog searches for this series?</span>
|
||||
</label>
|
||||
@Html.DropDownList("masterBacklogStatus", (SelectList)ViewData["MasterBacklogStatusSelectList"], new { @class = "inputClass" })
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -118,6 +127,7 @@
|
||||
var profileId = $('#masterQualitySelector').val();
|
||||
var monitored = $('#masterMonitored').val();
|
||||
var seasonFolder = $('#masterSeasonFolder').val();
|
||||
var backlogStatus = $('#masterBacklogStatus').val();
|
||||
|
||||
var selected = $('.editToggle:checked');
|
||||
|
||||
@@ -141,6 +151,10 @@
|
||||
|
||||
$(this).parent('td').parent('.seriesEditRow').find('.seasonFolder').prop('checked', seasonFolderBool);
|
||||
}
|
||||
|
||||
if (backlogStatus != -10) {
|
||||
$(this).parent('td').parent('.seriesEditRow').find('.backlogStatus').val(backlogStatus);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@model NzbDrone.Core.Repository.Series
|
||||
@using NzbDrone.Core.Model
|
||||
@using NzbDrone.Core.Repository.Quality
|
||||
@using NzbDrone.Web.Helpers
|
||||
|
||||
@@ -18,6 +19,7 @@
|
||||
<td>@Html.DropDownListFor(m => m.QualityProfileId, new SelectList((List<QualityProfile>)ViewData["QualityProfiles"], "QualityProfileId", "Name", Model.QualityProfileId), new { @class = "quality" })</td>
|
||||
<td class="checkboxColumn">@Html.CheckBoxFor(m => m.Monitored, new {@class = "seriesCheckbox monitored"})</td>
|
||||
<td class="checkboxColumn">@Html.CheckBoxFor(m => m.SeasonFolder, new {@class = "seriesCheckbox seasonFolder"})</td>
|
||||
<td>@Html.DropDownListFor(m => m.BacklogStatus, new SelectList((List<KeyValuePair<int, string>>)ViewData["BacklogStatusTypes"], "Key", "Value", (int)Model.BacklogStatus), new { @class = "backlogStatus" })</td>
|
||||
<td>@Html.TextBoxFor(m => m.Path, new { @class = "path" })</td>
|
||||
</tr>
|
||||
}
|
||||
Reference in New Issue
Block a user