removed backbone from VS solution,

renamed NzbDrone.Backbone to UI
This commit is contained in:
kay.one 2013-03-29 12:18:44 -07:00
commit 663160c06a
230 changed files with 57 additions and 386 deletions

View file

@ -0,0 +1,40 @@
<fieldset>
<legend>General</legend>
<div class="control-group">
<label class="control-label">Backlog Searching</label>
<div class="controls">
<div class="switch">
<input type="checkbox" name="enableBacklogSearching" />
</div>
<span class="help-inline-checkbox">
<i class="icon-question-sign" title="Should NzbDrone try to download missing episodes automatically?"></i>
<i class="icon-exclamation-sign danger" title="Enabling backlog searching can use a lot of bandwidth and is not
recommended for users with block usenet accounts or bandwidth restrictions."></i>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">Ignore Deleted Episodes</label>
<div class="controls">
<div class="switch">
<input type="checkbox" name="autoIgnorePreviouslyDownloadedEpisodes" />
</div>
<span class="help-inline-checkbox">
<i class="icon-question-sign" title="Episodes deleted from disk are automatically ignored in NzbDrone"></i>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">Nzb Restrictions</label>
<div class="controls">
<textarea rows="3" name="nzbRestrictions" class="nzb-restrictions"></textarea>
<span class="help-inline">
<i class="icon-question-sign" title="White list or black list nzbs based on these rules<br/>White list: +:LoL<br/>Black list: -:French"></i>
</span>
<span class="text-area-help">Newline-delimited set of rules in the form of +|-:</span>
</div>
</div>
</fieldset>

View file

@ -0,0 +1,23 @@
'use strict';
define([
'app', 'Settings/SettingsModel'
], function () {
NzbDrone.Settings.Misc.MiscView = Backbone.Marionette.ItemView.extend({
template: 'Settings/Misc/MiscTemplate',
className: 'form-horizontal',
ui: {
switch: '.switch',
tooltip: '[class^="help-inline"] i'
},
onRender: function () {
NzbDrone.ModelBinder.bind(this.model, this.el);
this.ui.switch.bootstrapSwitch();
this.ui.tooltip.tooltip({ placement: 'right', html: true });
}
});
});