1 <!-- edit bucket dialog -->
2 <form class="form-validated" novalidate ng-submit="ok(args)" name="form">
4 <div class="modal-header">
5 <button type="button" class="close"
6 ng-click="cancel()" aria-hidden="true">×</button>
7 <h4 class="modal-title">[% l('Edit Bucket') %]</h4>
9 <div class="modal-body">
10 <div class="form-group">
11 <label for="edit-bucket-name">[% l('Name') %]</label>
12 <input type="text" class="form-control" focus-me='focusMe' required
13 id="edit-bucket-name" ng-model="args.name" placeholder="[% l('Name...') %]"/>
15 <div class="form-group">
16 <label for="edit-bucket-desc">[% l('Description') %]</label>
17 <input type="text" class="form-control" id="edit-bucket-desc"
18 ng-model="args.desc" placeholder="[% l('Description...') %]"/>
20 <div ng-show="change_owner" class="form-group">
21 <label for="edit-bucket-owner">[% l('Owning Library') %]</label>
22 <eg-org-selector id="edit-bucket-owner" selected="args.owning_lib"></eg-org-selector>
24 <div class="checkbox">
26 <input ng-model="args.pub" type="checkbox">
27 <span ng-show="args.hold_sub">[% l('Visible to Patrons?') %]</span>
28 <span ng-show="!args.hold_sub">[% l('Shareable') %]</span>
30 <div ng-if="!args.hold_sub">
31 <eg-help-popover help-text="[%l('Visible and searchable by any staff member')%]">
35 <div class="modal-footer">
36 <input type="submit" class="btn btn-primary"
37 ng-disabled="form.$invalid" value="[% l('Apply Changes') %]"/>
38 <button class="btn btn-warning" ng-click="cancel()"
39 ng-class="{disabled : actionPending}">[% l('Cancel') %]</button>
41 </div> <!-- modal-content -->