1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-17 00:13:15 +01:00
Radarr/NzbDrone.Web/Views/Settings/NewznabProvider.cshtml

57 lines
1.9 KiB
Plaintext
Raw Normal View History

@model NzbDrone.Core.Repository.NewznabDefinition
@using NzbDrone.Web.Helpers
@{
Layout = null;
}
@using (Html.BeginCollectionItem("NewznabDefinitions"))
{
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
<div class="providerSection" id="provider_@(Model.Id)">
<div class="providerHeader">
<span class="titleText" id="title_@(Model.Id)">
@Model.Name
</span>
@if(!Model.BuiltIn)
{
2012-12-07 06:48:34 +01:00
<a href="/settings/deletenewznabprovider?providerId=@Model.Id" id="@Model.Id" class="deleteProvider" onclick="deleteProvider('@(Model.Id)'); return false;">
<i class="icon-remove remove-newznab"></i></a>
}
</div>
<div class="providerOptions">
2012-09-09 01:57:11 +02:00
<div>
@Html.Label("Enabled")
@Html.CheckBoxFor(m => m.Enable)
</div>
2012-09-09 01:57:11 +02:00
<div>
@Html.LabelFor(x => x.Name)
@Html.TextBoxFor(x => x.Name, new {@class = "providerName_textbox"})
</div>
<div>
@if(!Model.BuiltIn)
{
@Html.LabelFor(x => x.Url)
@Html.TextBoxFor(m => m.Url)
}
2012-09-09 01:57:11 +02:00
else
{
@Html.LabelFor(x => x.Url)
@Html.TextBox("DisabledIndexer", Model.Url, new { disabled = "disabled" })
@Html.HiddenFor(m => m.Url)
}
</div>
<div>
@Html.LabelFor(x => x.ApiKey)
@Html.TextBoxFor(m => m.ApiKey)
</div>
</div>
@Html.HiddenFor(x => x.Id, new {@class = "newznabProviderId"})
@Html.Hidden("cleanId", idClean, new {@class = "cleanId"})
2012-05-04 20:15:49 +02:00
@Html.HiddenFor(m => m.BuiltIn)
</div>
}