|
|
@ -1,33 +1,26 @@
|
|
|
|
@using NzbDrone.Web.Helpers;
|
|
|
|
@using NzbDrone.Web.Helpers;
|
|
|
|
@model NzbDrone.Web.Models.QualityModel
|
|
|
|
@model NzbDrone.Web.Models.QualityModel
|
|
|
|
|
|
|
|
|
|
|
|
@section HeaderContent{
|
|
|
|
@section HeaderContent{
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="/Content/Settings.css" />
|
|
|
|
<link href="../../Content/QualitySettings.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="/Content/QualitySettings.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
|
|
|
|
|
|
<script src="../../Scripts/jquery-1.6.1.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section TitleContent{
|
|
|
|
@section TitleContent{
|
|
|
|
Settings
|
|
|
|
Settings
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section ActionMenu{
|
|
|
|
@section ActionMenu{
|
|
|
|
@{Html.RenderPartial("SubMenu");}
|
|
|
|
@{Html.RenderPartial("SubMenu");}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section MainContent{
|
|
|
|
@section MainContent{
|
|
|
|
<div id="stylized">
|
|
|
|
<div id="stylized">
|
|
|
|
@using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "form", name = "form" }))
|
|
|
|
@using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "form", name = "form" }))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
<div id="top" class="settingsForm clearfix">
|
|
|
|
<div id="top" class="settingsForm clearfix">
|
|
|
|
<h1>Quality</h1>
|
|
|
|
<h1>
|
|
|
|
<p></p>
|
|
|
|
Quality</h1>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.DefaultQualityProfileId)
|
|
|
|
<label class="labelClass">@Html.LabelFor(m => m.DefaultQualityProfileId)
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.DefaultQualityProfileId)</span>
|
|
|
|
<span class="small">@Html.DescriptionFor(m => m.DefaultQualityProfileId)</span>
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
@Html.DropDownListFor(m => m.DefaultQualityProfileId, Model.QualityProfileSelectList, new { @class = "inputClass" })
|
|
|
|
@Html.DropDownListFor(m => m.DefaultQualityProfileId, Model.QualityProfileSelectList, new { @class = "inputClass" })
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -36,9 +29,9 @@
|
|
|
|
<div id="profileContainer">
|
|
|
|
<div id="profileContainer">
|
|
|
|
<div id="profileHeader">
|
|
|
|
<div id="profileHeader">
|
|
|
|
<a id="addItem" href="@Url.Action("AddProfile", "Settings")">
|
|
|
|
<a id="addItem" href="@Url.Action("AddProfile", "Settings")">
|
|
|
|
<img src="../../Content/Images/Plus.png" alt="Add New Profile" width="20px" height="20px" /> Add New Profile</a>
|
|
|
|
<img src="../../Content/Images/Plus.png" alt="Add New Profile" width="20px" height="20px" />
|
|
|
|
|
|
|
|
Add New Profile</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="profiles" class="clearfix">
|
|
|
|
<div id="profiles" class="clearfix">
|
|
|
|
@foreach (var item in Model.Profiles)
|
|
|
|
@foreach (var item in Model.Profiles)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -46,21 +39,20 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="submit" id="save_button">
|
|
|
|
<button type="submit" id="save_button" >Save</button><img src="../../Content/Images/ajax-loader.gif" alt="Loader" id="saveAjax"/>
|
|
|
|
Save</button><img src="../../Content/Images/ajax-loader.gif" alt="Loader" id="saveAjax" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="result" class="hiddenResult">
|
|
|
|
<div id="result" class="hiddenResult"></div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section Scripts{
|
|
|
|
@section Scripts{
|
|
|
|
<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
|
|
<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
|
|
<script src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
|
|
|
|
<script src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js"
|
|
|
|
|
|
|
|
type="text/javascript"></script>
|
|
|
|
<script src="../../Scripts/settingsForm.js" type="text/javascript"></script>
|
|
|
|
<script src="../../Scripts/settingsForm.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
$("#addItem").live('click', function () {
|
|
|
|
$("#addItem").live('click', function () {
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
@ -117,7 +109,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getProfileId(obj) {
|
|
|
|
function getProfileId(obj) {
|
|
|
|
var parentProfileSection = $(obj).parents('.profileSection');
|
|
|
|
var parentProfileSection = $(obj).parents('.profileSection');
|
|
|
|
return parentProfileSection.children('.qualityProfileId').val();
|
|
|
|
return parentProfileSection.children('.qualityProfileId').val();
|
|
|
|