@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
@{ 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(@
@Html.CheckBoxFor(m => m.NzbsOrgEnabled, new { @class = "inputClass checkClass" })
@Html.TextBoxFor(m => m.NzbsOrgUId, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.NzbsOrgHash, new { @class = "inputClass" })
);
indexerItem.Add()
.Text("NZB Matrix")
.ImageUrl("~/Content/Images/Indexers/NzbMatrix.png")
.Content(@
@Html.CheckBoxFor(m => m.NzbMatrixEnabled, new { @class = "inputClass checkClass" })
@Html.TextBoxFor(m => m.NzbMatrixUsername, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.NzbMatrixApiKey, new { @class = "inputClass" })
);
indexerItem.Add()
.Text("NZBsRus")
.ImageUrl("~/Content/Images/Indexers/NzbsRus.png")
.Content(@
@Html.CheckBoxFor(m => m.NzbsRUsEnabled, new { @class = "inputClass checkClass" })
@Html.TextBoxFor(m => m.NzbsrusUId, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.NzbsrusHash, new { @class = "inputClass" })
);
indexerItem.Add()
.Text("Newzbin")
.ImageUrl("~/Content/Images/Indexers/Newzbin.png")
.Content(@
@Html.CheckBoxFor(m => m.NewzbinEnabled, new { @class = "inputClass checkClass" })
@Html.TextBoxFor(m => m.NewzbinUsername, new { @class = "inputClass" })
@Html.TextBoxFor(m => m.NewzbinPassword, new { @class = "inputClass" })
);
}).Render();
}