Allowed release group added to UI.

This commit is contained in:
Mark McDowall 2012-08-06 22:32:07 -07:00
parent 67064ec495
commit 33274d04f0
3 changed files with 11 additions and 0 deletions

View File

@ -244,6 +244,7 @@ namespace NzbDrone.Web.Controllers
var model = new MiscSettingsModel();
model.EnableBacklogSearching = _configProvider.EnableBacklogSearching;
model.AutoIgnorePreviouslyDownloadedEpisodes = _configProvider.AutoIgnorePreviouslyDownloadedEpisodes;
model.AllowedReleaseGroups = _configProvider.AllowedReleaseGroups;
return View(model);
}
@ -633,6 +634,7 @@ namespace NzbDrone.Web.Controllers
{
_configProvider.EnableBacklogSearching = data.EnableBacklogSearching;
_configProvider.AutoIgnorePreviouslyDownloadedEpisodes = data.AutoIgnorePreviouslyDownloadedEpisodes;
_configProvider.AllowedReleaseGroups = data.AllowedReleaseGroups;
return GetSuccessResult();
}

View File

@ -15,5 +15,9 @@ namespace NzbDrone.Web.Models
[DisplayName("Automatically Ignore Deleted Episodes")]
[Description("Should NzbDrone automatically ignore episodes that were deleted from disk?")]
public bool AutoIgnorePreviouslyDownloadedEpisodes { get; set; }
[DisplayName("Allowed Release Groups")]
[Description("Comma separated list of release groups to download episodes")]
public string AllowedReleaseGroups { get; set; }
}
}

View File

@ -19,6 +19,11 @@
</label>
@Html.CheckBoxFor(m => m.AutoIgnorePreviouslyDownloadedEpisodes, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.AllowedReleaseGroups)
<span class="small">@Html.DescriptionFor(m => m.AllowedReleaseGroups)</span>
</label>
@Html.TextBoxFor(m => m.AllowedReleaseGroups, new { @class = "inputClass" })
<div style="overflow: hidden; height: 50px;">
</div>