]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/admin/local/autoGridEditor/acas.tt2
7733249477342f500c7d8193bbef9980785ffa33
[working/Evergreen.git] / Open-ILS / src / templates / staff / admin / local / autoGridEditor / acas.tt2
1 [% ctx.page_title = l("Copy 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)">
4   <div>
5     <div class="modal-header">
6       <button type="button" class="close" 
7         ng-click="cancel()" aria-hidden="true">&times;</button>
8       <h4 ng-if="creating"  class="modal-title">[% l('Create copy alert suppression rule') %]</h4>
9       <h4 ng-if="!creating" class="modal-title">[% l('Update copy alert suppression rule') %]</h4>
10     </div>
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()'">
17         </select>
18       </div>
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>
22       </div>
23     </div>
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-warning" ng-click="cancel()">[% l('Cancel') %]</button>
28     </div>
29   </div> <!-- modal-content -->
30 </form>