2011-04-20 01:46:21 +02:00
|
|
|
@model NzbDrone.Web.Models.IndexerSettingsModel
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
2011-06-27 05:05:47 +02:00
|
|
|
|
2011-04-20 01:46:21 +02:00
|
|
|
.section_content
|
|
|
|
{
|
|
|
|
padding-left: 15px;
|
|
|
|
}
|
|
|
|
|
2011-06-27 05:05:47 +02:00
|
|
|
|
2011-04-20 01:46:21 +02:00
|
|
|
.indexer_left
|
|
|
|
{
|
2011-06-27 05:05:47 +02:00
|
|
|
width: 80px;
|
|
|
|
float:left;
|
2011-04-20 01:46:21 +02:00
|
|
|
}
|
2011-06-09 03:45:06 +02:00
|
|
|
|
2011-04-20 01:46:21 +02:00
|
|
|
</style>
|
|
|
|
|
|
|
|
@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "form", name = "form" })) {
|
|
|
|
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>Indexers</legend>
|
|
|
|
<div>
|
|
|
|
@{ Html.Telerik().PanelBar()
|
|
|
|
.Name("PanelBar")
|
2011-06-09 03:45:06 +02:00
|
|
|
.HtmlAttributes(new { style = "width: 500px; margin: 10px;" })
|
2011-04-20 01:46:21 +02:00
|
|
|
.ExpandMode(PanelBarExpandMode.Single)
|
|
|
|
.SelectedIndex(0)
|
2011-05-31 08:13:46 +02:00
|
|
|
.Items(indexerItem =>
|
2011-04-20 01:46:21 +02:00
|
|
|
{
|
2011-05-31 08:13:46 +02:00
|
|
|
indexerItem.Add()
|
2011-04-20 01:46:21 +02:00
|
|
|
.Text("NZBs.org")
|
2011-06-06 02:33:02 +02:00
|
|
|
.ImageUrl("~/Content/Images/Indexers/Nzbs.org.png")
|
2011-05-31 08:13:46 +02:00
|
|
|
.Content(@<text>
|
|
|
|
<div class="section_content">
|
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
Enabled
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.CheckBoxFor(m => m.NzbsOrgEnabled, new { @class = "indexer_checkbox" })
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-04-20 01:46:21 +02:00
|
|
|
|
2011-05-31 08:13:46 +02:00
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
@Html.LabelFor(m => m.NzbsOrgUId)
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.TextBoxFor(m => m.NzbsOrgUId)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
@Html.LabelFor(m => m.NzbsOrgHash)
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.TextBoxFor(m => m.NzbsOrgHash)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</text>);
|
|
|
|
indexerItem.Add()
|
2011-04-20 01:46:21 +02:00
|
|
|
.Text("NZB Matrix")
|
2011-04-28 08:04:57 +02:00
|
|
|
.ImageUrl("~/Content/Images/Indexers/NzbMatrix.png")
|
2011-05-31 08:13:46 +02:00
|
|
|
.Content(@<text>
|
|
|
|
<div class="section_content">
|
2011-04-20 01:46:21 +02:00
|
|
|
|
2011-05-31 08:13:46 +02:00
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
Enabled
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.CheckBoxFor(m => m.NzbMatrixEnabled, new { @class = "indexer_checkbox" })
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-04-20 01:46:21 +02:00
|
|
|
|
2011-05-31 08:13:46 +02:00
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
@Html.LabelFor(m => m.NzbMatrixUsername)
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.TextBoxFor(m => m.NzbMatrixUsername)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
@Html.LabelFor(m => m.NzbMatrixApiKey)
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.TextBoxFor(m => m.NzbMatrixApiKey)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</text>);
|
|
|
|
indexerItem.Add()
|
2011-04-28 06:40:11 +02:00
|
|
|
.Text("NZBsRus")
|
2011-04-28 08:04:57 +02:00
|
|
|
.ImageUrl("~/Content/Images/Indexers/NzbsRus.png")
|
2011-05-31 08:13:46 +02:00
|
|
|
.Content(@<text>
|
|
|
|
<div class="section_content">
|
2011-04-20 01:46:21 +02:00
|
|
|
|
2011-05-31 08:13:46 +02:00
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
Enabled
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.CheckBoxFor(m => m.NzbsRUsEnabled, new { @class = "indexer_checkbox" })
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-04-20 01:46:21 +02:00
|
|
|
|
2011-05-31 08:13:46 +02:00
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
@Html.LabelFor(m => m.NzbsrusUId)
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.TextBoxFor(m => m.NzbsrusUId)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
@Html.LabelFor(m => m.NzbsrusHash)
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.TextBoxFor(m => m.NzbsrusHash)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</text>);
|
|
|
|
indexerItem.Add()
|
2011-04-20 01:46:21 +02:00
|
|
|
.Text("Newzbin")
|
2011-04-28 08:04:57 +02:00
|
|
|
.ImageUrl("~/Content/Images/Indexers/Newzbin.png")
|
2011-05-31 08:13:46 +02:00
|
|
|
.Content(@<text>
|
|
|
|
<div class="section_content">
|
2011-04-20 01:46:21 +02:00
|
|
|
|
2011-05-31 08:13:46 +02:00
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
Enabled
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.CheckBoxFor(m => m.NewzbinEnabled, new { @class = "indexer_checkbox" })
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-04-20 01:46:21 +02:00
|
|
|
|
2011-05-31 08:13:46 +02:00
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
@Html.LabelFor(m => m.NewzbinUsername)
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.TextBoxFor(m => m.NewzbinUsername)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="indexer_group">
|
|
|
|
<div class="indexer_left">
|
|
|
|
@Html.LabelFor(m => m.NewzbinPassword)
|
|
|
|
</div>
|
|
|
|
<div class="indexer_right">
|
|
|
|
@Html.TextBoxFor(m => m.NewzbinPassword)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</text>);
|
2011-04-20 01:46:21 +02:00
|
|
|
}).Render();
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="save_button_div">
|
|
|
|
<input type="submit" id="save_button" value="Save" disabled="disabled" />
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
}
|
2011-06-30 07:22:34 +02:00
|
|
|
<div id="result" class="hiddenResult"></div>
|