1 <form ng-submit="ok(copy_alert)" role="form">
2 <div class="modal-header">
3 <button type="button" class="close" ng-click="cancel()"
4 aria-hidden="true">×</button>
5 <h4 class="modal-title">[% l('Manage Item Alerts') %]</h4>
7 <div class="modal-body">
8 <div class="row" ng-repeat="a in copy_alert_list | orderBy:'id()'" ng-init="temp = (a.temp() == 't'); note = a.note(); acked = (a.ack_time() !== null); alert_type = a.alert_type().id()">
9 <div class="col-md-12">
11 <div class="col-md-6 form-inline">
12 <label for="copy-alert-type-select-{{a.id()}}">[% l('Type') %]</label>
13 <select id="copy-alert-type-select-{{a.id()}}" class="form-control"
15 ng-change="a.alert_type(alert_type) && a.ischanged(1)"
16 ng-options="at.id() as at.name() for at in alert_types | orderBy:'name()'">
19 <div class="col-md-3">
21 <input type="checkbox" ng-model="temp" ng-change="a.temp(temp ? 't' : 'f') && a.ischanged(1)" ng-disabled="acked"/>
25 <div class="col-md-3">
27 <input type="checkbox" ng-model="acked" ng-change="(acked ? a.ack_time('now') : a.ack_time(null)) && a.ischanged(1)"/>
32 <div class="row pad-vert">
33 <div class="col-md-12">
34 <textarea class="form-control" ng-change="a.note(note) && a.ischanged(1)"
35 ng-model="note" placeholder="[% l('Alert...') %]" ng-disabled="acked">
40 <div class="col-md-12">
47 <div class="modal-footer">
49 <div class="col-md-10 pull-right">
50 <input type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
51 <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>