2011-07-01 20:33:03 +00:00
|
|
|
@using NzbDrone.Web.Helpers
|
|
|
|
@model NzbDrone.Web.Models.IndexerSettingsModel
|
2011-12-10 04:15:38 +00:00
|
|
|
@{ Layout = "~/Views/Shared/_ReferenceLayout.cshtml"; }
|
2011-07-01 20:33:03 +00:00
|
|
|
@section HeaderContent{
|
2011-12-09 04:57:23 +00:00
|
|
|
@Html.IncludeCss("Settings.css")
|
|
|
|
@Html.IncludeCss("IndexerSettings.css")
|
2011-11-26 06:27:00 +00:00
|
|
|
<style>
|
2011-07-01 20:33:03 +00:00
|
|
|
.indexerPanel
|
|
|
|
{
|
2011-11-26 20:28:20 +00:00
|
|
|
overflow: auto;
|
|
|
|
}
|
2012-02-17 09:32:33 +00:00
|
|
|
|
|
|
|
.retentionContainer
|
|
|
|
{
|
|
|
|
padding-top: 20px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2011-08-05 04:38:18 +00:00
|
|
|
</style>
|
2011-07-01 20:33:03 +00:00
|
|
|
}
|
2011-12-01 05:04:44 +00:00
|
|
|
<div class="infoBox">
|
2012-01-11 19:38:52 +00:00
|
|
|
RSS feeds are checked every 25 minutes for new episodes.</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
<div id="stylized">
|
2011-12-01 06:39:11 +00:00
|
|
|
@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "IndexersForm", name = "IndexersForm", @class = "settingsForm" }))
|
2012-02-17 09:32:33 +00:00
|
|
|
{
|
2011-12-08 05:30:47 +00:00
|
|
|
<div class="jquery-accordion">
|
2011-12-01 05:04:44 +00:00
|
|
|
<h3>
|
|
|
|
<a href="#">NZBs.org</a></h3>
|
|
|
|
<div class="indexerPanel">
|
|
|
|
<label class="labelClass">
|
|
|
|
Enable <span class="small">@Html.DescriptionFor(m => m.NzbsOrgEnabled)</span>
|
|
|
|
</label>
|
|
|
|
@Html.CheckBoxFor(m => m.NzbsOrgEnabled, new { @class = "inputClass checkClass" })
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.NzbsOrgUId)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.NzbsOrgUId)</span>
|
|
|
|
</label>
|
|
|
|
@Html.TextBoxFor(m => m.NzbsOrgUId, new { @class = "inputClass" })
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.NzbsOrgHash)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.NzbsOrgHash)</span>
|
|
|
|
</label>
|
|
|
|
@Html.TextBoxFor(m => m.NzbsOrgHash, new { @class = "inputClass" })
|
|
|
|
</div>
|
|
|
|
<h3>
|
|
|
|
<a href="#">NZBMatrix</a></h3>
|
|
|
|
<div class="indexerPanel">
|
|
|
|
<label class="labelClass">
|
|
|
|
Enable <span class="small">@Html.DescriptionFor(m => m.NzbMatrixEnabled)</span>
|
|
|
|
</label>
|
|
|
|
@Html.CheckBoxFor(m => m.NzbMatrixEnabled, new { @class = "inputClass checkClass" })
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.NzbMatrixUsername)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.NzbMatrixUsername)</span>
|
|
|
|
</label>
|
|
|
|
@Html.TextBoxFor(m => m.NzbMatrixUsername, new { @class = "inputClass" })
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.NzbMatrixApiKey)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.NzbMatrixApiKey)</span>
|
|
|
|
</label>
|
|
|
|
@Html.TextBoxFor(m => m.NzbMatrixApiKey, new { @class = "inputClass" })
|
|
|
|
</div>
|
|
|
|
<h3>
|
|
|
|
<a href="#">NZBsRus</a></h3>
|
|
|
|
<div class="indexerPanel">
|
2012-01-17 08:00:41 +00:00
|
|
|
<div class="warningBox">NZBsRus does not support backlog searching</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
<label class="labelClass">
|
|
|
|
Enable <span class="small">@Html.DescriptionFor(m => m.NzbsRUsEnabled)</span>
|
|
|
|
</label>
|
|
|
|
@Html.CheckBoxFor(m => m.NzbsRUsEnabled, new { @class = "inputClass checkClass" })
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.NzbsrusUId)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.NzbsrusUId)</span>
|
|
|
|
</label>
|
|
|
|
@Html.TextBoxFor(m => m.NzbsrusUId, new { @class = "inputClass" })
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.NzbsrusHash)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.NzbsrusHash)</span>
|
|
|
|
</label>
|
|
|
|
@Html.TextBoxFor(m => m.NzbsrusHash, new { @class = "inputClass" })
|
|
|
|
</div>
|
|
|
|
<h3>
|
2011-12-30 03:20:40 +00:00
|
|
|
<a href="#">Newzbin</a></h3>
|
2011-12-01 05:04:44 +00:00
|
|
|
<div class="indexerPanel">
|
|
|
|
<label class="labelClass">
|
|
|
|
Enable <span class="small">@Html.DescriptionFor(m => m.NewzbinEnabled)</span>
|
|
|
|
</label>
|
|
|
|
@Html.CheckBoxFor(m => m.NewzbinEnabled, new { @class = "inputClass checkClass" })
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.NewzbinUsername)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.NewzbinUsername)</span>
|
|
|
|
</label>
|
|
|
|
@Html.TextBoxFor(m => m.NewzbinUsername, new { @class = "inputClass" })
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.NewzbinPassword)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.NewzbinPassword)</span>
|
|
|
|
</label>
|
2012-01-23 18:57:15 +00:00
|
|
|
@Html.TextBoxFor(m => m.NewzbinPassword, new { @class = "inputClass", type = "password" })
|
2011-12-01 05:04:44 +00:00
|
|
|
</div>
|
|
|
|
<h3>
|
|
|
|
<a href="#">Newznab</a></h3>
|
|
|
|
<div class="indexerPanel">
|
|
|
|
<label class="labelClass">
|
|
|
|
Enable <span class="small">@Html.DescriptionFor(m => m.NewznabEnabled)</span>
|
|
|
|
</label>
|
|
|
|
@Html.CheckBoxFor(m => m.NewznabEnabled, new { @class = "inputClass checkClass" })
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<p>
|
|
|
|
</p>
|
|
|
|
<a id="addItem" href="@Url.Action("AddNewznabProvider", "Settings")">
|
|
|
|
<img src="../../Content/Images/Plus.png" alt="Add Newznab Provider" width="20px"
|
|
|
|
height="20px" />
|
|
|
|
Add Newznab Provider</a>
|
|
|
|
<div id="newznabProviders">
|
|
|
|
@foreach (var provider in Model.NewznabDefinitions)
|
|
|
|
{
|
|
|
|
Html.RenderAction("GetNewznabProviderView", provider);
|
|
|
|
}
|
2011-11-26 04:02:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
</div>
|
2012-02-17 09:32:33 +00:00
|
|
|
|
|
|
|
<div class="retentionContainer">
|
|
|
|
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
|
|
|
|
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.Retention)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.Retention)</span>
|
|
|
|
</label>
|
|
|
|
@Html.TextBoxFor(m => m.Retention, new { @class = "inputClass" })
|
|
|
|
</div>
|
|
|
|
|
2011-12-01 06:39:11 +00:00
|
|
|
<button type="submit" class="save_button" disabled="disabled">
|
2011-12-01 05:04:44 +00:00
|
|
|
Save</button>
|
|
|
|
}
|
|
|
|
</div>
|
2011-08-05 04:38:18 +00:00
|
|
|
@section Scripts{
|
2011-11-13 20:51:15 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$("#addItem").live('click', function () {
|
|
|
|
$.ajax({
|
|
|
|
url: this.href,
|
|
|
|
cache: false,
|
|
|
|
success: function (html) {
|
|
|
|
$("#newznabProviders").append(html);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
var deleteNewznabProviderUrl = '@Url.Action("DeleteNewznabProvider", "Settings")';
|
|
|
|
|
|
|
|
function deleteProvider(id) {
|
|
|
|
$.ajax({
|
|
|
|
type: "POST",
|
|
|
|
url: deleteNewznabProviderUrl,
|
|
|
|
data: jQuery.param({ providerId: id }),
|
|
|
|
error: function (req, status, error) {
|
|
|
|
alert("Sorry! We could not delete your Provider at this time. " + error);
|
|
|
|
},
|
|
|
|
success: function (data, textStatus, jqXHR) {
|
|
|
|
if (data == "ok") {
|
|
|
|
$("#provider_" + id).remove();
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
alert(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getProviderId(obj) {
|
|
|
|
var parentProviderSection = $(obj).parents('.providerSection');
|
|
|
|
return parentProviderSection.children('.newznabProviderId').val();
|
|
|
|
}
|
|
|
|
|
|
|
|
$(".providerName_textbox").live('keyup', function () {
|
|
|
|
var value = $(this).val();
|
|
|
|
var profileId = getProviderId(this);
|
|
|
|
$("#title_" + profileId).text(value);
|
|
|
|
}).keyup();
|
|
|
|
|
|
|
|
</script>
|
2011-11-26 04:02:29 +00:00
|
|
|
}
|