]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/bucket/t_bucket_create.tt2
LP1615805 No inputs after submit in patron search (AngularJS)
[Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / bucket / t_bucket_create.tt2
1 <!-- edit bucket dialog -->
2
3 <!-- use <form> so we get submit-on-enter for free -->
4 <form class="form-validated" novalidate name="form" ng-submit="ok(args)">
5   <div>
6     <div class="modal-header">
7       <button type="button" class="close" 
8         ng-click="cancel()" aria-hidden="true">&times;</button>
9       <h4 class="modal-title">[% l('Create Bucket') %]</h4>
10     </div>
11     <div class="modal-body">
12       <div class="form-group">
13         <label for="edit-bucket-name">[% l('Name') %]</label>
14         <input type="text" class="form-control" focus-me='focusMe' required
15           id="edit-bucket-name" ng-model="args.name" placeholder="[% l('Name...') %]"/>
16       </div>
17       <div class="form-group">
18         <label for="edit-bucket-desc">[% l('Description') %]</label>
19         <input type="text" class="form-control" id="edit-bucket-desc"
20           ng-model="args.desc" placeholder="[% l('Description...') %]"/>
21       </div>
22        <div class="checkbox">
23         <label>
24           <input ng-model="args.pub" type="checkbox"/> 
25           [% l('Shareable') %]
26         </label>
27         <eg-help-popover help-text="[%l('Visible and searchable by any staff member')%]">
28       </div>
29     </div>
30     <div class="modal-footer">
31       <input type="submit" ng-disabled="form.$invalid" 
32           class="btn btn-primary" value="[% l('Create Bucket') %]"/>
33       <button class="btn btn-normal" ng-click="cancel()">[% l('Cancel') %]</button>
34     </div>
35   </div> <!-- modal-content -->
36 </form>