mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Settings loading overhaul
Download client moved to a layout Settings are only shown after all settings are loaded
This commit is contained in:
parent
29ed3293d1
commit
b21e49f5fa
16 changed files with 443 additions and 372 deletions
15
UI/Settings/DownloadClient/BlackholeView.js
Normal file
15
UI/Settings/DownloadClient/BlackholeView.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'Mixins/AsModelBoundView',
|
||||
'bootstrap'
|
||||
], function (Marionette, AsModelBoundView) {
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template : 'Settings/DownloadClient/BlackholeViewTemplate'
|
||||
});
|
||||
|
||||
return AsModelBoundView.call(view);
|
||||
});
|
13
UI/Settings/DownloadClient/BlackholeViewTemplate.html
Normal file
13
UI/Settings/DownloadClient/BlackholeViewTemplate.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<fieldset>
|
||||
<legend>Blackhole</legend>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Blackhole Folder</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="blackholeFolder" class="x-path"/>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="The folder where your download client will pickup .nzb files"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
|
@ -1,258 +0,0 @@
|
|||
<fieldset>
|
||||
<legend>General</legend>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Download Client</label>
|
||||
|
||||
<div class="controls">
|
||||
<select class="inputClass x-download-client" name="downloadClient">
|
||||
<option value="sabnzbd">SABnzbd</option>
|
||||
<option value="blackhole">Blackhole</option>
|
||||
<option value="pneumatic">Pneumatic</option>
|
||||
<option value="nzbget">NZBGet</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Drone Factory</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="downloadedEpisodesFolder" class="x-path"/>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="The folder where your download client downloads TV shows to (aka TV Download Dir)"/>
|
||||
<i class="icon-exclamation-sign danger" title="Do not use the folder that contains some or all of your sorted and named TV shows - doing so could cause data loss"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="x-sab-config">
|
||||
<legend>SABnzbd</legend>
|
||||
|
||||
{{!<div class="control-group">
|
||||
<label class="control-label">Auto-Configure</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="button" value="Auto-Configure" class="btn btn-inverse"/>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign"
|
||||
title="(Windows only) If access to SABnzbd doesn't require a username & password and it is on the same system as NzbDrone, you can auto-configure it"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>}}
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Host</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabHost"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Port</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabPort"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">API Key</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabApiKey"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Username</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabUsername"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Password</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="password" name="sabPassword"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">TV Category</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabTvCategory" placeholder="This is not the dropdownlist you're looking for"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Backlog Priority</label>
|
||||
|
||||
<div class="controls">
|
||||
<select name="sabBacklogTvPriority">
|
||||
<option value="default">Default</option>
|
||||
<option value="paused">Paused</option>
|
||||
<option value="low">Low</option>
|
||||
<option value="normal">Normal</option>
|
||||
<option value="high">High</option>
|
||||
<option value="force">Force</option>
|
||||
</select>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Priority to use when sending episodes older than 7 days to SABnzbd"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Recent Priority</label>
|
||||
|
||||
<div class="controls">
|
||||
<select name="sabRecentTvPriority">
|
||||
<option value="default">Default</option>
|
||||
<option value="paused">Paused</option>
|
||||
<option value="low">Low</option>
|
||||
<option value="normal">Normal</option>
|
||||
<option value="high">High</option>
|
||||
<option value="force">Force</option>
|
||||
</select>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Priority to use when sending episodes that aired within the last 7 days to SABnzbd"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Test</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="button" value="Test" class="btn btn-inverse"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="x-blackhole-config">
|
||||
<legend>Blackhole</legend>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Blackhole Folder</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="blackholeFolder" class="x-path"/>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="The folder where your download client will pickup .nzb files"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="x-pneumatic-config">
|
||||
<legend>Pneumatic</legend>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Nzb Folder</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="pneumaticFolder" class="x-path"/>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Folder to save NZBs for Pneumatic<br/>must be accessible from XBMC"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="x-nzbget-config">
|
||||
<legend>NZBGet</legend>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Host</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetHost"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Port</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetPort"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">API Key</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetApiKey"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Username</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetUsername"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Password</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="password" name="nzbgetPassword"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">TV Category</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetTvCategory"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Backlog Priority</label>
|
||||
|
||||
<div class="controls">
|
||||
<select name="nzbgetBacklogTvPriority">
|
||||
<option value="default">Default</option>
|
||||
<option value="pasued">Paused</option>
|
||||
<option value="low">Low</option>
|
||||
<option value="normal">Normal</option>
|
||||
<option value="high">High</option>
|
||||
<option value="force">Force</option>
|
||||
</select>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Priority to use when sending episodes older than 7 days to NZBGet"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Recent Priority</label>
|
||||
|
||||
<div class="controls">
|
||||
<select name="nzbgetRecentTvPriority">
|
||||
<option value="default">Default</option>
|
||||
<option value="pasued">Paused</option>
|
||||
<option value="low">Low</option>
|
||||
<option value="normal">Normal</option>
|
||||
<option value="high">High</option>
|
||||
<option value="force">Force</option>
|
||||
</select>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Priority to use when sending episodes that aired within the last 7 days to NZBGet"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Test</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="button" value="Test" class="btn btn-inverse"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
|
@ -1,81 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'Mixins/AsModelBoundView',
|
||||
'bootstrap'
|
||||
], function (Marionette, AsModelBoundView) {
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template : 'Settings/DownloadClient/DownloadClientTemplate',
|
||||
className: 'form-horizontal',
|
||||
|
||||
ui: {
|
||||
bsSwitch : '.switch',
|
||||
tooltip : '.help-inline i',
|
||||
pathInput : '.x-path',
|
||||
sabConfig : '.x-sab-config',
|
||||
blackholeConfig : '.x-blackhole-config',
|
||||
pneumaticConfig : '.x-pneumatic-config',
|
||||
nzbGetConfig : '.x-nzbget-config',
|
||||
downloadClientSelect: '.x-download-client'
|
||||
},
|
||||
|
||||
events: {
|
||||
'change .x-download-client': 'downloadClientChanged'
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
this.ui.pathInput.autoComplete('/directories');
|
||||
this.refreshUIVisibility(this.model.get('downloadClient'));
|
||||
},
|
||||
|
||||
downloadClientChanged: function () {
|
||||
var clientId = this.ui.downloadClientSelect.val();
|
||||
this.refreshUIVisibility(clientId);
|
||||
},
|
||||
|
||||
refreshUIVisibility: function (clientId) {
|
||||
|
||||
if (!clientId) {
|
||||
clientId = 'sabnzbd';
|
||||
}
|
||||
|
||||
switch (clientId.toString()) {
|
||||
case 'sabnzbd':
|
||||
this.ui.sabConfig.show();
|
||||
this.ui.blackholeConfig.hide();
|
||||
this.ui.pneumaticConfig.hide();
|
||||
this.ui.nzbGetConfig.hide();
|
||||
break;
|
||||
|
||||
case 'blackhole':
|
||||
this.ui.sabConfig.hide();
|
||||
this.ui.blackholeConfig.show();
|
||||
this.ui.pneumaticConfig.hide();
|
||||
this.ui.nzbGetConfig.hide();
|
||||
break;
|
||||
|
||||
case 'pneumatic':
|
||||
this.ui.sabConfig.hide();
|
||||
this.ui.blackholeConfig.hide();
|
||||
this.ui.pneumaticConfig.show();
|
||||
this.ui.nzbGetConfig.hide();
|
||||
break;
|
||||
|
||||
case 'nzbget':
|
||||
this.ui.sabConfig.hide();
|
||||
this.ui.blackholeConfig.hide();
|
||||
this.ui.pneumaticConfig.hide();
|
||||
this.ui.nzbGetConfig.show();
|
||||
break;
|
||||
|
||||
default :
|
||||
throw 'unknown download client id' + clientId;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return AsModelBoundView.call(view);
|
||||
});
|
74
UI/Settings/DownloadClient/Layout.js
Normal file
74
UI/Settings/DownloadClient/Layout.js
Normal file
|
@ -0,0 +1,74 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'Settings/DownloadClient/SabView',
|
||||
'Settings/DownloadClient/BlackholeView',
|
||||
'Settings/DownloadClient/PneumaticView',
|
||||
'Settings/DownloadClient/NzbgetView',
|
||||
'Mixins/AsModelBoundView',
|
||||
'bootstrap'
|
||||
], function (Marionette, SabView, BlackholeView, PneumaticView, NzbgetView, AsModelBoundView) {
|
||||
|
||||
var view = Marionette.Layout.extend({
|
||||
template : 'Settings/DownloadClient/LayoutTemplate',
|
||||
|
||||
regions: {
|
||||
downloadClient: '#download-client-settings-region'
|
||||
},
|
||||
|
||||
ui: {
|
||||
downloadClientSelect: '.x-download-client'
|
||||
},
|
||||
|
||||
events: {
|
||||
'change .x-download-client': 'downloadClientChanged'
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
this.sabView = new SabView({ model: this.model});
|
||||
this.blackholeView = new BlackholeView({ model: this.model});
|
||||
this.pneumaticView = new PneumaticView({ model: this.model});
|
||||
this.nzbgetView = new NzbgetView({ model: this.model});
|
||||
|
||||
var client = this.model.get('downloadClient');
|
||||
this.refreshUIVisibility(client);
|
||||
},
|
||||
|
||||
downloadClientChanged: function () {
|
||||
var clientId = this.ui.downloadClientSelect.val();
|
||||
this.refreshUIVisibility(clientId);
|
||||
},
|
||||
|
||||
refreshUIVisibility: function (clientId) {
|
||||
|
||||
if (!clientId) {
|
||||
clientId = 'sabnzbd';
|
||||
}
|
||||
|
||||
switch (clientId.toString()) {
|
||||
case 'sabnzbd':
|
||||
this.downloadClient.show(this.sabView);
|
||||
break;
|
||||
|
||||
case 'blackhole':
|
||||
this.downloadClient.show(this.blackholeView);
|
||||
break;
|
||||
|
||||
case 'pneumatic':
|
||||
this.downloadClient.show(this.pneumaticView);
|
||||
break;
|
||||
|
||||
case 'nzbget':
|
||||
this.downloadClient.show(this.nzbgetView);
|
||||
break;
|
||||
|
||||
default :
|
||||
throw 'unknown download client id' + clientId;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return AsModelBoundView.call(view);
|
||||
});
|
29
UI/Settings/DownloadClient/LayoutTemplate.html
Normal file
29
UI/Settings/DownloadClient/LayoutTemplate.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<fieldset class="form-horizontal">
|
||||
<legend>General</legend>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Download Client</label>
|
||||
|
||||
<div class="controls">
|
||||
<select class="inputClass x-download-client" name="downloadClient">
|
||||
<option value="sabnzbd">SABnzbd</option>
|
||||
<option value="blackhole">Blackhole</option>
|
||||
<option value="pneumatic">Pneumatic</option>
|
||||
<option value="nzbget">NZBGet</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Drone Factory</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="downloadedEpisodesFolder" class="x-path"/>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="The folder where your download client downloads TV shows to (aka TV Download Dir)"/>
|
||||
<i class="icon-exclamation-sign danger" title="Do not use the folder that contains some or all of your sorted and named TV shows - doing so could cause data loss"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div id="download-client-settings-region" class="form-horizontal"></div>
|
15
UI/Settings/DownloadClient/NzbgetView.js
Normal file
15
UI/Settings/DownloadClient/NzbgetView.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'Mixins/AsModelBoundView',
|
||||
'bootstrap'
|
||||
], function (Marionette, AsModelBoundView) {
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template : 'Settings/DownloadClient/NzbgetViewTemplate'
|
||||
});
|
||||
|
||||
return AsModelBoundView.call(view);
|
||||
});
|
94
UI/Settings/DownloadClient/NzbgetViewTemplate.html
Normal file
94
UI/Settings/DownloadClient/NzbgetViewTemplate.html
Normal file
|
@ -0,0 +1,94 @@
|
|||
<fieldset>
|
||||
<legend>NZBGet</legend>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Host</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetHost"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Port</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetPort"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">API Key</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetApiKey"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Username</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetUsername"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Password</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="password" name="nzbgetPassword"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">TV Category</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="nzbgetTvCategory"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Backlog Priority</label>
|
||||
|
||||
<div class="controls">
|
||||
<select name="nzbgetBacklogTvPriority">
|
||||
<option value="default">Default</option>
|
||||
<option value="pasued">Paused</option>
|
||||
<option value="low">Low</option>
|
||||
<option value="normal">Normal</option>
|
||||
<option value="high">High</option>
|
||||
<option value="force">Force</option>
|
||||
</select>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Priority to use when sending episodes older than 7 days to NZBGet"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Recent Priority</label>
|
||||
|
||||
<div class="controls">
|
||||
<select name="nzbgetRecentTvPriority">
|
||||
<option value="default">Default</option>
|
||||
<option value="pasued">Paused</option>
|
||||
<option value="low">Low</option>
|
||||
<option value="normal">Normal</option>
|
||||
<option value="high">High</option>
|
||||
<option value="force">Force</option>
|
||||
</select>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Priority to use when sending episodes that aired within the last 7 days to NZBGet"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Test</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="button" value="Test" class="btn btn-inverse"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
15
UI/Settings/DownloadClient/PneumaticView.js
Normal file
15
UI/Settings/DownloadClient/PneumaticView.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'Mixins/AsModelBoundView',
|
||||
'bootstrap'
|
||||
], function (Marionette, AsModelBoundView) {
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template : 'Settings/DownloadClient/PneumaticViewTemplate'
|
||||
});
|
||||
|
||||
return AsModelBoundView.call(view);
|
||||
});
|
13
UI/Settings/DownloadClient/PneumaticViewTemplate.html
Normal file
13
UI/Settings/DownloadClient/PneumaticViewTemplate.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<fieldset>
|
||||
<legend>Pneumatic</legend>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Nzb Folder</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="pneumaticFolder" class="x-path"/>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Folder to save NZBs for Pneumatic<br/>must be accessible from XBMC"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
15
UI/Settings/DownloadClient/SabView.js
Normal file
15
UI/Settings/DownloadClient/SabView.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'Mixins/AsModelBoundView',
|
||||
'bootstrap'
|
||||
], function (Marionette, AsModelBoundView) {
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template : 'Settings/DownloadClient/SabViewTemplate'
|
||||
});
|
||||
|
||||
return AsModelBoundView.call(view);
|
||||
});
|
107
UI/Settings/DownloadClient/SabViewTemplate.html
Normal file
107
UI/Settings/DownloadClient/SabViewTemplate.html
Normal file
|
@ -0,0 +1,107 @@
|
|||
<fieldset>
|
||||
<legend>SABnzbd</legend>
|
||||
|
||||
{{!<div class="control-group">
|
||||
<label class="control-label">Auto-Configure</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="button" value="Auto-Configure" class="btn btn-inverse"/>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign"
|
||||
title="(Windows only) If access to SABnzbd doesn't require a username & password and it is on the same system as NzbDrone, you can auto-configure it"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>}}
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Host</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabHost"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Port</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabPort"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">API Key</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabApiKey"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Username</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabUsername"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Password</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="password" name="sabPassword"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">TV Category</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="sabTvCategory" placeholder="This is not the dropdownlist you're looking for"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Backlog Priority</label>
|
||||
|
||||
<div class="controls">
|
||||
<select name="sabBacklogTvPriority">
|
||||
<option value="default">Default</option>
|
||||
<option value="paused">Paused</option>
|
||||
<option value="low">Low</option>
|
||||
<option value="normal">Normal</option>
|
||||
<option value="high">High</option>
|
||||
<option value="force">Force</option>
|
||||
</select>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Priority to use when sending episodes older than 7 days to SABnzbd"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Recent Priority</label>
|
||||
|
||||
<div class="controls">
|
||||
<select name="sabRecentTvPriority">
|
||||
<option value="default">Default</option>
|
||||
<option value="paused">Paused</option>
|
||||
<option value="low">Low</option>
|
||||
<option value="normal">Normal</option>
|
||||
<option value="high">High</option>
|
||||
<option value="force">Force</option>
|
||||
</select>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="Priority to use when sending episodes that aired within the last 7 days to SABnzbd"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Test</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="button" value="Test" class="btn btn-inverse"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
Loading…
Add table
Add a link
Reference in a new issue