1 [% ctx.page_title = l("Item Alert Suppression"); %]
2 <!-- use <form> so we get submit-on-enter for free -->
3 <form class="form-validated" novalidate name="form" ng-submit="ok(record)">
5 <div class="modal-header">
6 <button type="button" class="close"
7 ng-click="cancel()" aria-hidden="true">×</button>
8 <h4 ng-if="creating" class="modal-title">[% l('Create item alert suppression rule') %]</h4>
9 <h4 ng-if="!creating" class="modal-title">[% l('Update item alert suppression rule') %]</h4>
11 <div class="modal-body">
12 <div class="form-group">
13 <label for="copy-alert-type-selector">[% l('Alert Type') %]</label>
14 <select id="copy-alert-type-selector" class="form-control"
15 ng-model="record.alert_type"
16 ng-options="at.id() as at.name() for at in ccat | orderBy:'name()'">
19 <div class="form-group">
20 <label for="select-org-unit">[% l('Org Unit') %]</label>
21 <eg-org-selector selected="record.org"></eg-org-selector>
24 <div class="modal-footer">
25 <input type="submit" ng-disabled="form.$invalid"
26 class="btn btn-primary" value="[% l('Save') %]"/>
27 <button class="btn btn-normal" ng-click="cancel()">[% l('Cancel') %]</button>
29 </div> <!-- modal-content -->