mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
indexer settings is dynamically generated
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
{{#each fields}}
|
||||
<div class="control-group">
|
||||
<label class="control-label">{{title}}</label>
|
||||
<label class="control-label">{{label}}</label>
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" name="fields.{{@index}}.value"/>
|
||||
@@ -35,4 +35,4 @@
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
@@ -7,13 +7,8 @@ define([
|
||||
], function () {
|
||||
|
||||
NzbDrone.Settings.Indexers.ItemView = Backbone.Marionette.ItemView.extend({
|
||||
template: 'Settings/Indexers/ItemTemplate',
|
||||
template : 'Settings/Indexers/ItemTemplate',
|
||||
initialize: function () {
|
||||
this.model.set('fields', [
|
||||
{ key: 'username', title: 'Username', helpText: 'HALP!', value: 'mark' },
|
||||
{ key: 'apiKey', title: 'API Key', helpText: 'HALP!', value: 'private' }
|
||||
]);
|
||||
|
||||
NzbDrone.vent.on(NzbDrone.Commands.SaveSettings, this.saveSettings, this);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user