1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00

Rethought about where certain things are stored.

Profiles are now a component of the NetImportDefinition.
This commit is contained in:
Leonardo Galli
2017-01-22 17:02:20 +01:00
parent 9fffcfaea3
commit 94eccc6c14
11 changed files with 36 additions and 25 deletions
@@ -38,8 +38,7 @@ module.exports = Marionette.ItemView.extend({
_openEdit : function() {
this.model.set({
id : undefined,
enableRss : this.model.get('supportsRss'),
enableSearch : this.model.get('supportsSearch')
enableAuto : this.model.get('enableAuto')
});
var editView = new EditView({
@@ -3,6 +3,7 @@ var $ = require('jquery');
var vent = require('vent');
var Marionette = require('marionette');
var DeleteView = require('../Delete/IndexerDeleteView');
var Profiles = require('../../../Profile/ProfileCollection');
var AsModelBoundView = require('../../../Mixins/AsModelBoundView');
var AsValidatedView = require('../../../Mixins/AsValidatedView');
var AsEditModalView = require('../../../Mixins/AsEditModalView');
@@ -22,6 +23,8 @@ var view = Marionette.ItemView.extend({
initialize : function(options) {
this.targetCollection = options.targetCollection;
this.templateHelpers = {};
this.templateHelpers.profiles = Profiles.toJSON();
},
_onAfterSave : function() {
@@ -23,7 +23,7 @@
<div class="col-sm-5">
<div class="input-group">
<label class="checkbox toggle well">
<input type="checkbox" name="enableAutomatic" />
<input type="checkbox" name="enableAutomatic" {{#if enableAuto}} checked="checked" {{/if}} />
<p>
<span>Yes</span>
<span>No</span>
@@ -39,6 +39,15 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Quality Profile</label>
<div class="col-sm-5">
{{> ProfileSelectionPartial profiles}}
</div>
</div>
{{formBuilder}}
</div>
</div>