90687246ad9d6dbb6a91ad1f8552eb98ed310ffe
[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('Staff Sharable?') %]
26         </label>
27       </div>
28     </div>
29     <div class="modal-footer">
30       <input type="submit" ng-disabled="form.$invalid" 
31           class="btn btn-primary" value="[% l('Create Bucket') %]"/>
32       <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
33     </div>
34   </div> <!-- modal-content -->
35 </form>