LP#1778522 Precat item creation should be more intentional
[Evergreen.git] / Open-ILS / src / templates / staff / circ / share / t_precat_dialog.tt2
1 <!-- edit bucket dialog -->
2 <form role="form">
3   <div class="">
4     <div class="modal-content">
5       <div class="modal-header">
6         <button type="button" class="close" 
7           ng-click="cancel()" aria-hidden="true">&times;</button>
8         <h4 class="modal-title">
9           [% l('Barcode "{{precatArgs.copy_barcode}}" was mis-scanned or is a non-cataloged item.') %]
10         </h4>
11         <div ng-show="!can_create_precats" class="alert alert-warning">
12             [% l('You do not have permission to create a pre-cataloged item with this barcode.') %]
13         </div>
14       </div>
15       <div class="modal-body">
16         <div class="form-group">
17           <label for="precat-title">[% l('Title') %]</label>
18           <input type="text" class="form-control" focus-me='focusMe' required
19             ng-disabled="!can_create_precats"
20             id="precat-title" ng-model="precatArgs.dummy_title" placeholder="[% l('Title...') %]"/>
21         </div>
22         <div class="form-group">
23           <label for="precat-author">[% l('Author') %]</label>
24           <input type="text" class="form-control" id="precat-author"
25             ng-disabled="!can_create_precats"
26             ng-model="precatArgs.dummy_author" placeholder="[% l('Author...') %]"/>
27         </div>
28         <div class="form-group">
29           <label for="precat-isbn">[% l('ISBN') %]</label>
30           <input type="text" class="form-control" id="precat-isbn"
31             ng-disabled="!can_create_precats"
32             ng-model="precatArgs.dummy_isbn" placeholder="[% l('ISBN...') %]"/>
33         </div>
34         <div class="form-group">
35           <label for="precat-circmod">[% l('Circulation Modifier') %]</label>
36           <select class="form-control" id="precat-circmod" 
37             ng-disabled="!can_create_precats"
38             ng-model="precatArgs.circ_modifier">
39             <option value=""></option>
40             <option ng-repeat="mod in circModifiers | orderBy:'name()'"
41               value="{{mod.code()}}">{{mod.name()}}</option>
42           </select>
43         </div>
44       </div>
45       <div class="modal-footer">
46         <button type="button" class="btn btn-primary" ng-click="ok(precatArgs)"
47             ng-disabled="!can_create_precats">[% l('Precat Checkout') %]</button>
48         <button type="button" class="btn btn-warning" ng-click="cancel()"
49             ng-class="{disabled : actionPending}">[% l('Cancel') %]</button>
50       </div>
51     </div> <!-- modal-content -->
52   </div> <!-- modal-dialog -->
53 </form>