2011-11-29 05:10:43 +00:00
|
|
|
@using NzbDrone.Core.Repository.Quality
|
|
|
|
@using NzbDrone.Web.Helpers;
|
2011-05-18 03:39:26 +00:00
|
|
|
@model NzbDrone.Web.Models.QualityModel
|
2012-10-15 00:50:01 +00:00
|
|
|
|
|
|
|
@{
|
|
|
|
Layout = "_SettingsLayout.cshtml";
|
|
|
|
}
|
|
|
|
|
2011-12-01 05:04:44 +00:00
|
|
|
<div id="stylized">
|
2012-10-15 00:50:01 +00:00
|
|
|
@using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "QualityForm", name = "QualityForm", @class = "settingsForm" }))
|
2011-12-01 05:04:44 +00:00
|
|
|
{
|
2012-10-15 00:50:01 +00:00
|
|
|
<div id="top">
|
2011-12-01 05:04:44 +00:00
|
|
|
<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" })
|
2011-12-08 08:19:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="jquery-accordion">
|
2011-12-09 04:57:23 +00:00
|
|
|
<h3>
|
2012-02-23 19:16:11 +00:00
|
|
|
<a href="#">Profiles</a></h3>
|
|
|
|
<div id="profileContainer">
|
|
|
|
<div id="profiles">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h3>
|
|
|
|
<a href="#">Size Limits</a></h3>
|
2011-12-01 05:04:44 +00:00
|
|
|
<div class="sliders">
|
2012-03-03 01:12:34 +00:00
|
|
|
<div class="infoBox">
|
|
|
|
Size Limits specify the maximum download size NzbDrone will send to your download client.
|
|
|
|
</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
<div class="slider-container">
|
|
|
|
<b>SDTV</b>
|
|
|
|
<div id="sdtv-slider" class="slider">
|
2011-09-16 04:42:30 +00:00
|
|
|
</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
@Html.HiddenFor(m => m.SdtvMaxSize, new { @class = "slider-value" })
|
2012-03-03 01:12:34 +00:00
|
|
|
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
|
2012-10-15 00:50:01 +00:00
|
|
|
</span>MB
|
2011-12-01 05:04:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="slider-container">
|
|
|
|
<b>DVD</b>
|
|
|
|
<div id="dvd-slider" class="slider">
|
2011-09-16 04:42:30 +00:00
|
|
|
</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
@Html.HiddenFor(m => m.DvdMaxSize, new { @class = "slider-value" })
|
2012-03-03 01:12:34 +00:00
|
|
|
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
|
2012-10-15 00:50:01 +00:00
|
|
|
</span>MB
|
2011-12-01 05:04:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="slider-container">
|
|
|
|
<b>HDTV</b>
|
|
|
|
<div id="hdtv-slider" class="slider">
|
2011-09-16 04:42:30 +00:00
|
|
|
</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
@Html.HiddenFor(m => m.HdtvMaxSize, new { @class = "slider-value" })
|
2012-03-03 01:12:34 +00:00
|
|
|
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
|
2012-10-15 00:50:01 +00:00
|
|
|
</span>MB
|
2011-12-01 05:04:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="slider-container">
|
2012-10-15 04:30:07 +00:00
|
|
|
<b>WEBDL-720p</b>
|
2011-12-01 05:04:44 +00:00
|
|
|
<div id="webdl-slider" class="slider">
|
2011-09-16 04:42:30 +00:00
|
|
|
</div>
|
2012-10-15 04:30:07 +00:00
|
|
|
@Html.HiddenFor(m => m.Webdl720pMaxSize, new { @class = "slider-value" })
|
2012-03-03 01:12:34 +00:00
|
|
|
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
|
2012-10-15 00:50:01 +00:00
|
|
|
</span>MB
|
2011-12-01 05:04:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="slider-container">
|
|
|
|
<b>Bluray 720p</b>
|
|
|
|
<div id="bluray720p-slider" class="slider">
|
2011-09-16 04:42:30 +00:00
|
|
|
</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
@Html.HiddenFor(m => m.Bluray720pMaxSize, new { @class = "slider-value" })
|
2012-03-03 01:12:34 +00:00
|
|
|
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
|
2012-10-15 00:50:01 +00:00
|
|
|
</span>MB
|
2011-12-01 05:04:44 +00:00
|
|
|
</div>
|
2012-10-15 04:30:07 +00:00
|
|
|
<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>
|
2011-12-01 05:04:44 +00:00
|
|
|
<div class="slider-container">
|
|
|
|
<b>Bluray 1080p</b>
|
|
|
|
<div id="bluray1080p-slider" class="slider">
|
2011-09-16 04:42:30 +00:00
|
|
|
</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
@Html.HiddenFor(m => m.Bluray1080pMaxSize, new { @class = "slider-value" })
|
2012-03-03 01:12:34 +00:00
|
|
|
30 minute size: <span class="30-minute"></span>MB | 60 minute size: <span class="60-minute">
|
2012-10-15 00:50:01 +00:00
|
|
|
</span>MB
|
2011-09-16 04:42:30 +00:00
|
|
|
</div>
|
2011-06-28 02:24:42 +00:00
|
|
|
</div>
|
2011-12-01 05:04:44 +00:00
|
|
|
</div>
|
2011-12-08 08:19:07 +00:00
|
|
|
<br />
|
2011-12-09 04:57:23 +00:00
|
|
|
<button type="submit" class="save_button" disabled="disabled">
|
|
|
|
Save</button>
|
2011-12-01 05:04:44 +00:00
|
|
|
}
|
|
|
|
</div>
|
2012-02-18 20:00:50 +00:00
|
|
|
|
2012-10-15 00:50:01 +00:00
|
|
|
@section Scripts {
|
2012-10-15 04:30:07 +00:00
|
|
|
@Html.IncludeScript("NzbDrone/qualitySettings.js")
|
2012-10-15 00:50:01 +00:00
|
|
|
|
2012-10-15 04:30:07 +00:00
|
|
|
<script type="text/javascript">
|
2012-10-15 00:50:01 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
setupSliders();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.quality-selectee').livequery(function() {
|
|
|
|
$(this).button();
|
|
|
|
});
|
|
|
|
</script>
|
2012-11-07 00:41:34 +00:00
|
|
|
|
2012-11-09 16:28:59 +00:00
|
|
|
@Html.IncludeScript("backbone/apps/qualityProfileApp.js")
|
2012-11-07 00:41:34 +00:00
|
|
|
@Html.IncludeScript("backbone/constants.js")
|
2012-11-09 16:28:59 +00:00
|
|
|
@Html.IncludeScript("backbone/models/qualityProfile.js")
|
|
|
|
@Html.IncludeScript("backbone/models/qualityProfileCollection.js")
|
2012-11-07 00:41:34 +00:00
|
|
|
@Html.IncludeScript("backbone/views/qualityProfiles.js")
|
|
|
|
@*@Html.IncludeScript("backbone/bootstrapper.js")*@
|
|
|
|
|
2012-11-09 16:28:59 +00:00
|
|
|
<script id="QualityProfileTemplate" type="text/template">
|
2012-12-05 16:34:43 +00:00
|
|
|
<a href="#" class="remove-profile"><i class="icon-remove"></i></a>
|
|
|
|
<div class="quality-profile-setting">
|
|
|
|
<label>Name</label>
|
2012-12-03 03:08:26 +00:00
|
|
|
<input type="text" value="<%= Name %>" class="name" />
|
|
|
|
</div>
|
2012-12-05 16:34:43 +00:00
|
|
|
<div class="quality-profile-setting">
|
|
|
|
<label>Cutoff</label>
|
2012-12-03 03:08:26 +00:00
|
|
|
<select id="<%= Id %>" class="cutoff">
|
|
|
|
<% _.each(Qualities, function(quality) { %>
|
|
|
|
<% if (quality.Allowed === true) { %>
|
|
|
|
<option value="<%= quality.Id %>" <%= quality.Id === Cutoff ? 'selected="selected"' : '' %>><%= quality.Name %></option>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% }); %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2012-11-24 08:03:38 +00:00
|
|
|
<% _.each(Qualities, function(quality) { %>
|
|
|
|
<input id="<%= Id %>_<%= quality.Id %>"
|
2012-12-05 16:34:43 +00:00
|
|
|
class="quality-selectee"
|
|
|
|
type="checkbox"
|
|
|
|
value="<%= quality.Allowed %>"
|
|
|
|
data-quality-id="<%= quality.Id %>"
|
|
|
|
<%= quality.Allowed ? 'checked="checked"' : '' %>
|
2012-11-24 08:03:38 +00:00
|
|
|
/>
|
|
|
|
<label for="<%= Id %>_<%= quality.Id %>"><%= quality.Name %></label>
|
|
|
|
<% }); %>
|
2012-12-05 16:34:43 +00:00
|
|
|
|
|
|
|
|
2012-11-07 00:41:34 +00:00
|
|
|
</script>
|
2012-11-09 16:28:59 +00:00
|
|
|
|
|
|
|
<script id="QualityProfileCollectionTemplate" type="text/template">
|
2012-12-05 01:21:54 +00:00
|
|
|
<div id="profileHeader">
|
|
|
|
<button id="add-profile">Add New Profile</button>
|
|
|
|
|
|
|
|
@*<a id="add-profile" href="@Url.Action("AddProfile", "Settings")">
|
|
|
|
<i class="icon-plus icon-large"></i>
|
|
|
|
Add New Profile
|
|
|
|
</a>*@
|
|
|
|
</div>
|
2012-11-09 16:28:59 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
2012-12-03 03:08:26 +00:00
|
|
|
$(document).ready(function() {
|
2012-11-09 16:28:59 +00:00
|
|
|
QualityProfileApp.App.start();
|
|
|
|
});
|
|
|
|
</script>
|
2012-11-07 00:41:34 +00:00
|
|
|
}
|