LP#1887852 Pending patron passwords aren't initially set to phone #
[Evergreen.git] / Open-ILS / src / templates / staff / circ / share / t_precat_dialog.tt2
1 <!-- edit bucket dialog -->
2 <form ng-submit="ok(precatArgs)" 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-keydown="preventSubmit($event)"
33             ng-model="precatArgs.dummy_isbn" placeholder="[% l('ISBN...') %]"/>
34         </div>
35         <div class="form-group">
36           <label for="precat-circmod">[% l('Circulation Modifier') %]</label>
37           <select class="form-control" id="precat-circmod" 
38             ng-disabled="!can_create_precats"
39             ng-model="precatArgs.circ_modifier">
40             <option value=""></option>
41             <option ng-repeat="mod in circModifiers | orderBy:'name()'"
42               value="{{mod.code()}}">{{mod.name()}}</option>
43           </select>
44         </div>
45       </div>
46       <div class="modal-footer">
47         <input type="submit" class="btn btn-primary" value="[% l('Precat Checkout') %]"
48             ng-disabled="!can_create_precats"
49         />
50         <button class="btn btn-warning" ng-click="cancel()"
51             ng-class="{disabled : actionPending}">[% l('Cancel') %]</button>
52       </div>
53     </div> <!-- modal-content -->
54   </div> <!-- modal-dialog -->
55 </form>