1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/NzbDrone.Web/Views/Settings/Quality.cshtml

136 lines
6.0 KiB
Plaintext
Raw Normal View History

@using NzbDrone.Core.Repository.Quality
@using NzbDrone.Web.Helpers;
@model NzbDrone.Web.Models.QualityModel
2012-10-15 03:50:01 +03:00
@{
Layout = "_SettingsLayout.cshtml";
}
<div id="stylized">
2012-10-15 03:50:01 +03:00
@using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "QualityForm", name = "QualityForm", @class = "settingsForm" }))
{
2012-10-15 03:50:01 +03:00
<div id="top">
<label class="labelClass">@Html.LabelFor(m => m.DefaultQualityProfileId)
<span class="small">@Html.DescriptionFor(m => m.DefaultQualityProfileId)</span>
</label>
@Html.DropDownListFor(m => m.DefaultQualityProfileId, Model.QualityProfileSelectList, new { @class = "inputClass" })
</div>
<div class="jquery-accordion">
<h3>
<a href="#">Profiles</a></h3>
<div id="profileContainer">
<div id="profileHeader">
<a id="addProfile" href="@Url.Action("AddProfile", "Settings")">
2012-10-11 10:27:05 +03:00
<i class="icon-plus icon-large"></i>
Add New Profile
</a>
</div>
<div id="profiles">
</div>
</div>
<h3>
<a href="#">Size Limits</a></h3>
<div class="sliders">
<div class="infoBox">
Size Limits specify the maximum download size NzbDrone will send to your download client.
</div>
<div class="slider-container">
<b>SDTV</b>
<div id="sdtv-slider" class="slider">
</div>
@Html.HiddenFor(m => m.SdtvMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
2012-10-15 03:50:01 +03:00
</span>MB
</div>
<div class="slider-container">
<b>DVD</b>
<div id="dvd-slider" class="slider">
</div>
@Html.HiddenFor(m => m.DvdMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
2012-10-15 03:50:01 +03:00
</span>MB
</div>
<div class="slider-container">
<b>HDTV</b>
<div id="hdtv-slider" class="slider">
</div>
@Html.HiddenFor(m => m.HdtvMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
2012-10-15 03:50:01 +03:00
</span>MB
</div>
<div class="slider-container">
<b>WEBDL-720p</b>
<div id="webdl-slider" class="slider">
</div>
@Html.HiddenFor(m => m.Webdl720pMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
2012-10-15 03:50:01 +03:00
</span>MB
</div>
<div class="slider-container">
<b>Bluray 720p</b>
<div id="bluray720p-slider" class="slider">
</div>
@Html.HiddenFor(m => m.Bluray720pMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
2012-10-15 03:50:01 +03:00
</span>MB
</div>
<div class="slider-container">
<b>WEBDL-1080p</b>
<div id="webdl-slider" class="slider">
</div>
@Html.HiddenFor(m => m.Webdl1080pMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
</span>MB
</div>
<div class="slider-container">
<b>Bluray 1080p</b>
<div id="bluray1080p-slider" class="slider">
</div>
@Html.HiddenFor(m => m.Bluray1080pMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
2012-10-15 03:50:01 +03:00
</span>MB
</div>
</div>
</div>
<br />
<button type="submit" class="save_button" disabled="disabled">
Save</button>
}
</div>
2012-02-18 23:00:50 +03:00
2012-10-15 03:50:01 +03:00
@section Scripts {
@Html.IncludeScript("NzbDrone/qualitySettings.js")
2012-10-15 03:50:01 +03:00
<script type="text/javascript">
2012-10-15 03:50:01 +03:00
$(document).ready(function() {
setupSliders();
});
$('.quality-selectee').livequery(function() {
$(this).button();
});
</script>
2012-11-07 03:41:34 +03:00
2012-11-09 19:28:59 +03:00
@Html.IncludeScript("backbone/apps/qualityProfileApp.js")
2012-11-07 03:41:34 +03:00
@Html.IncludeScript("backbone/constants.js")
2012-11-09 19:28:59 +03:00
@Html.IncludeScript("backbone/models/qualityProfile.js")
@Html.IncludeScript("backbone/models/qualityProfileCollection.js")
2012-11-07 03:41:34 +03:00
@Html.IncludeScript("backbone/views/qualityProfiles.js")
@*@Html.IncludeScript("backbone/bootstrapper.js")*@
2012-11-09 19:28:59 +03:00
<script id="QualityProfileTemplate" type="text/template">
2012-11-07 03:41:34 +03:00
<%= Name %>
<%= Cutoff %>
<%= Allowed %>
</script>
2012-11-09 19:28:59 +03:00
<script id="QualityProfileCollectionTemplate" type="text/template">
</script>
<script>
$(document).ready(function () {
QualityProfileApp.App.start();
});
</script>
2012-11-07 03:41:34 +03:00
}