Notifications can be tested

Notification ImplementationType was added for showing in UI (Humanized/Title cased of Implementation)
This commit is contained in:
Mark McDowall 2013-06-12 23:41:26 -07:00
commit 8cac7ed1cd
34 changed files with 418 additions and 328 deletions

View file

@ -1,7 +1,7 @@
<div class="add-notification-item span3">
<div class="row">
<div class="span3">
{{name}}
{{implementationName}}
</div>
</div>
</div>

View file

@ -20,7 +20,6 @@ define([
addNotification: function () {
this.model.set('id', undefined);
this.model.set('name', '');
var view = new NzbDrone.Settings.Notifications.EditView({ model: this.model, notificationCollection: this.notificationCollection });
NzbDrone.modalRegion.show(view);
}

View file

@ -2,6 +2,7 @@
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>On Grab</th>
<th>On Download</th>
<th>Controls</th>

View file

@ -1,9 +1,9 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
{{#if id}}
<h3>Edit</h3>
<h3>Edit - {{implementationName}}</h3>
{{else}}
<h3>Add</h3>
<h3>Add - {{implementationName}}</h3>
{{/if}}
</div>
<div class="modal-body">

View file

@ -1,4 +1,5 @@
<td name="name"></td>
<td name="implementationName"></td>
<td name="onGrab"></td>
<td name="onDownload"></td>
<td name="cutoff.name"></td>