@model NzbDrone.Web.Models.IndexerSettingsModel @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.")
Indexers
@{ Html.Telerik().PanelBar() .Name("PanelBar") .HtmlAttributes(new { style = "width: 300px; margin: 10px;" }) .ExpandMode(PanelBarExpandMode.Single) .SelectedIndex(0) .Items(item => { item.Add() .Text("NZBs.org") .ImageUrl("~/Content/Images/Indexers/NzbsOrg.png") .Content( "
" + "
" + "
" + "Enabled" + "
" + "
" + Html.CheckBoxFor(m => m.NzbsOrgEnabled, new { @class = "indexer_checkbox" }) + "
" + "
" + "
" + "
" + Html.LabelFor(m => m.NzbsOrgUId) + "
" + "
" + Html.TextBoxFor(m => m.NzbsOrgUId) + "
" + "
" + "
" + "
" + Html.LabelFor(m => m.NzbsOrgHash) + "
" + "
" + Html.TextBoxFor(m => m.NzbsOrgHash) + "
" + "
" + "
" ); item.Add() .Text("NZB Matrix") .ImageUrl("~/Content/Images/Indexers/NzbMatrix.png") .Content( "
" + "
" + "
" + "Enabled" + "
" + "
" + Html.CheckBoxFor(m => m.NzbMatrixEnabled, new { @class = "indexer_checkbox" }) + "
" + "
" + "
" + "
" + Html.LabelFor(m => m.NzbMatrixUsername) + "
" + "
" + Html.TextBoxFor(m => m.NzbMatrixUsername) + "
" + "
" + "
" + "
" + Html.LabelFor(m => m.NzbMatrixApiKey) + "
" + "
" + Html.TextBoxFor(m => m.NzbMatrixApiKey) + "
" + "
" + "
" ); item.Add() .Text("NZBsRus") .ImageUrl("~/Content/Images/Indexers/NzbsRus.png") .Content( "
" + "
" + "
" + "Enabled" + "
" + "
" + Html.CheckBoxFor(m => m.NzbsRUsEnabled, new { @class = "indexer_checkbox" }) + "
" + "
" + "
" + "
" + Html.LabelFor(m => m.NzbsrusUId) + "
" + "
" + Html.TextBoxFor(m => m.NzbsrusUId) + "
" + "
" + "
" + "
" + Html.LabelFor(m => m.NzbsrusHash) + "
" + "
" + Html.TextBoxFor(m => m.NzbsrusHash) + "
" + "
" + "
" ); item.Add() .Text("Newzbin") .ImageUrl("~/Content/Images/Indexers/Newzbin.png") .Content( "
" + "
" + "
" + "Enabled" + "
" + "
" + Html.CheckBoxFor(m => m.NewzbinEnabled, new { @class = "indexer_checkbox" }) + "
" + "
" + "
" + "
" + Html.LabelFor(m => m.NewzbinUsername) + "
" + "
" + Html.TextBoxFor(m => m.NewzbinUsername) + "
" + "
" + "
" + "
" + Html.LabelFor(m => m.NewzbinPassword) + "
" + "
" + Html.TextBoxFor(m => m.NewzbinPassword) + "
" + "
" + "
" ); }).Render(); }
}