mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-16 15:29:40 +02:00
More layout changes for Download Settings to get validation looking better.
This commit is contained in:
parent
6e66a7a27f
commit
3a9f053a17
@ -173,11 +173,18 @@ hr
|
||||
}
|
||||
|
||||
/* Config Pages */
|
||||
.config-section
|
||||
{
|
||||
width: 550px;
|
||||
display: block;
|
||||
padding-bottom: 25px;
|
||||
}
|
||||
|
||||
.config-group
|
||||
{
|
||||
width:300px;
|
||||
display: block;
|
||||
padding-bottom: 25px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.config-title
|
||||
@ -190,16 +197,19 @@ hr
|
||||
.config-value
|
||||
{
|
||||
float: right;
|
||||
|
||||
}
|
||||
|
||||
.config-validation
|
||||
{
|
||||
|
||||
color: Red;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.sub-field
|
||||
{
|
||||
width: 50%;
|
||||
width: 70%;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
input[type="text"]
|
||||
|
@ -284,8 +284,9 @@ public ActionResult SaveDownloads(DownloadSettingsModel data)
|
||||
}
|
||||
}
|
||||
|
||||
//ViewData["viewName"] = "Downloads";
|
||||
//return View("Index", data);
|
||||
if (Request.IsAjaxRequest())
|
||||
return Content("Error Saving Settings, please fix any errors");
|
||||
|
||||
return Content("Error Saving Settings, please fix any errors");
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
{%>
|
||||
<%: Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.") %>
|
||||
|
||||
<fieldset >
|
||||
<fieldset>
|
||||
<legend>Download Settings</legend>
|
||||
<%--//Sync Frequency
|
||||
//Download Propers?
|
||||
@ -47,77 +47,94 @@
|
||||
<fieldset class="sub-field">
|
||||
<legend>Usenet Variables</legend>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SyncFrequency) %></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SyncFrequency)%></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SyncFrequency) %></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SyncFrequency)%></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.SyncFrequency)%></div>
|
||||
</div>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.DownloadPropers)%></div>
|
||||
<div class="config-value"><%= Html.CheckBoxFor(m => m.DownloadPropers)%></div>
|
||||
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.DownloadPropers)%></div>
|
||||
<div class="config-value"><%= Html.CheckBoxFor(m => m.DownloadPropers)%></div>
|
||||
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.DownloadPropers)%></div>
|
||||
</div>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.Retention)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.Retention)%></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.Retention)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.Retention)%></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.Retention)%></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset class="sub-field">
|
||||
<legend>SABnzbd</legend>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabHost)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabHost)%></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabHost)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabHost)%></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.SabHost)%></div>
|
||||
</div>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabPort)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabPort)%></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabPort)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabPort)%></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.SabPort)%></div>
|
||||
</div>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabApiKey)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabApiKey)%></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabApiKey)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabApiKey)%></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.SabApiKey)%></div>
|
||||
</div>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabUsername)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabUsername)%></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabUsername)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabUsername)%></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.SabUsername)%></div>
|
||||
</div>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabPassword)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabPassword)%></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabPassword)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabPassword)%></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.SabPassword)%></div>
|
||||
</div>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabCategory)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabCategory)%></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabCategory)%></div>
|
||||
<div class="config-value"><%= Html.TextBoxFor(m => m.SabCategory)%></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.SabCategory)%></div>
|
||||
</div>
|
||||
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabPriority) %></div>
|
||||
<div class="config-value"><%= Html.DropDownListFor(m => m.SabPriority, Model.PrioritySelectList) %></div>
|
||||
<div class="config-section">
|
||||
<div class="config-group">
|
||||
<div class="config-title"><%= Html.LabelFor(m => m.SabPriority) %></div>
|
||||
<div class="config-value"><%= Html.DropDownListFor(m => m.SabPriority, Model.PrioritySelectList) %></div>
|
||||
</div>
|
||||
<div class="config-validation"><%= Html.ValidationMessageFor(m => m.SabCategory)%></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Save" class="submitButton"/>
|
||||
</p>
|
||||
|
||||
<% } %>
|
||||
</fieldset>
|
||||
|
||||
<% } %>
|
||||
<div id="result"></div>
|
Loading…
Reference in New Issue
Block a user