1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-23 16:32:48 +00:00

Fixed newznab config layout

This commit is contained in:
Mark McDowall 2012-09-08 16:57:11 -07:00
parent 4cefc5323c
commit 5eed64fa73
2 changed files with 41 additions and 28 deletions

View file

@ -42,30 +42,36 @@
padding: 3px; padding: 3px;
} }
.providerOptions label .providerOptions label {
{ margin-top: 8px;
margin-top: 10px;
margin-left: 3px; margin-left: 3px;
margin-right: 25px;
float: left; float: left;
font-weight: bold; font-weight: bold;
width: 50px; width: 50px;
} }
.providerOptions input, .providerOptions select .providerOptions input, .providerOptions select {
{
font-size: 12px; font-size: 12px;
padding: 4px 2px; padding: 4px 2px;
border: solid 1px #aacfe4; border: solid 1px #aacfe4;
width: 170px; width: 170px;
margin-right: 0px; margin-right: 2px;
float: right;
} }
.providerOptions select .providerOptions select {
{
width: 176px; width: 176px;
} }
.providerOptions div {
overflow: hidden;
height: 35px;
}
.providerOptions input[type="checkbox"] {
margin-top: 10px;
}
.deleteProvider .deleteProvider
{ {
position: absolute; position: absolute;

View file

@ -20,27 +20,34 @@
} }
</div> </div>
<div class="providerOptions"> <div class="providerOptions">
@Html.Label("Enabled") <div>
@Html.CheckBoxFor(m => m.Enable) @Html.Label("Enabled")
@Html.CheckBoxFor(m => m.Enable)
@Html.LabelFor(x => x.Name) </div>
@Html.TextBoxFor(x => x.Name, new {@class = "providerName_textbox"})
@if(!Model.BuiltIn) <div>
{ @Html.LabelFor(x => x.Name)
@Html.LabelFor(x => x.Url) @Html.TextBoxFor(x => x.Name, new {@class = "providerName_textbox"})
@Html.TextBoxFor(m => m.Url) </div>
} <div>
@if(!Model.BuiltIn)
{
@Html.LabelFor(x => x.Url)
@Html.TextBoxFor(m => m.Url)
}
else else
{ {
@Html.LabelFor(x => x.Url) @Html.LabelFor(x => x.Url)
@Html.TextBox("DisabledIndexer", Model.Url, new { disabled = "disabled" }) @Html.TextBox("DisabledIndexer", Model.Url, new { disabled = "disabled" })
@Html.HiddenFor(m => m.Url) @Html.HiddenFor(m => m.Url)
} }
</div>
@Html.LabelFor(x => x.ApiKey)
@Html.TextBoxFor(m => m.ApiKey) <div>
@Html.LabelFor(x => x.ApiKey)
@Html.TextBoxFor(m => m.ApiKey)
</div>
</div> </div>
@Html.HiddenFor(x => x.Id, new {@class = "newznabProviderId"}) @Html.HiddenFor(x => x.Id, new {@class = "newznabProviderId"})