mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-30 19:45:57 +00:00
95b4250d5d
Enable checkbox for Indexer is now labeled as such. Removed jscript load for deleted script. A user will now be unable to add a rootDir if the SabDropDir value is the same (ignoring case). A user will also be unable to set their SabDropDir to the same value as an exiting RootDir (Ignoring case). The last two changes prevent users from possibly causing all TV shows to be deleted.
138 lines
No EOL
6.2 KiB
Text
138 lines
No EOL
6.2 KiB
Text
@using NzbDrone.Web.Helpers
|
|
@model NzbDrone.Web.Models.IndexerSettingsModel
|
|
|
|
@section HeaderContent{
|
|
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
|
|
|
|
<style>
|
|
.indexerPanel
|
|
{
|
|
padding-top: 20px;
|
|
}
|
|
</style>
|
|
}
|
|
|
|
@section TitleContent{
|
|
Settings
|
|
}
|
|
|
|
@section ActionMenu{
|
|
@{Html.RenderPartial("SubMenu");}
|
|
}
|
|
|
|
@section MainContent{
|
|
<div id="stylized">
|
|
|
|
@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
|
|
{
|
|
<h1>Indexers</h1>
|
|
<p></p>
|
|
|
|
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
|
|
<div>
|
|
@{ Html.Telerik().PanelBar()
|
|
.Name("PanelBar")
|
|
//.HtmlAttributes(new { style = "width: 500px; margin: 10px;" })
|
|
.ExpandMode(PanelBarExpandMode.Single)
|
|
.SelectedIndex(0)
|
|
.Items(indexerItem =>
|
|
{
|
|
indexerItem.Add()
|
|
.Text("NZBs.org")
|
|
.ImageUrl("~/Content/Images/Indexers/Nzbs.org.png")
|
|
.Content(@<text>
|
|
<div class="indexerPanel clearfix">
|
|
<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>
|
|
</text>);
|
|
indexerItem.Add()
|
|
.Text("NZB Matrix")
|
|
.ImageUrl("~/Content/Images/Indexers/NzbMatrix.png")
|
|
.Content(@<text>
|
|
<div class="indexerPanel clearfix">
|
|
<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>
|
|
</text>);
|
|
indexerItem.Add()
|
|
.Text("NZBsRus")
|
|
.ImageUrl("~/Content/Images/Indexers/NzbsRus.png")
|
|
.Content(@<text>
|
|
<div class="indexerPanel clearfix">
|
|
<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>
|
|
</text>);
|
|
indexerItem.Add()
|
|
.Text("Newzbin")
|
|
.ImageUrl("~/Content/Images/Indexers/Newzbin.png")
|
|
.Content(@<text>
|
|
<div class="indexerPanel clearfix">
|
|
<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>
|
|
@Html.TextBoxFor(m => m.NewzbinPassword, new { @class = "inputClass" })
|
|
</div>
|
|
</text>);
|
|
}).Render();
|
|
}
|
|
</div>
|
|
<br/>
|
|
<button type="submit" id="save_button" disabled="disabled">Save</button>
|
|
}
|
|
|
|
</div>
|
|
|
|
<div id="result" class="hiddenResult"></div>
|
|
}
|
|
|
|
@section Scripts{
|
|
<script src="/Scripts/settingsForm.js" type="text/javascript"></script>
|
|
} |