1 <!-- edit bucket dialog -->
2 <form ng-submit="ok(precatArgs)" role="form">
4 <div class="modal-content">
5 <div class="modal-header">
6 <button type="button" class="close"
7 ng-click="cancel()" aria-hidden="true">×</button>
8 <h4 class="modal-title">
9 [% l('Barcode "{{precatArgs.copy_barcode}}" was mis-scanned or is a non-cataloged item.') %]
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.') %]
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...') %]"/>
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...') %]"/>
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...') %]"/>
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>
46 <div class="modal-footer">
47 <input type="submit" class="btn btn-primary" value="[% l('Precat Checkout') %]"
48 ng-disabled="!can_create_precats"
50 <button class="btn btn-warning" ng-click="cancel()"
51 ng-class="{disabled : actionPending}">[% l('Cancel') %]</button>
53 </div> <!-- modal-content -->
54 </div> <!-- modal-dialog -->