]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/serials/t_apply_binding_template.tt2
LP#1708291: web staff client serials module
[Evergreen.git] / Open-ILS / src / templates / staff / serials / t_apply_binding_template.tt2
1 <form ng-submit="ok(args)" role="form">
2
3 <style>
4 /* odd/even row styling */
5 .modal-body > div:nth-child(odd) {
6   background-color: rgb(248, 248, 248);
7 }
8 </style>
9
10 <div class="modal-header">
11     <button type="button" class="close" ng-click="cancel()" 
12         aria-hidden="true">&times;</button>
13     <h4 class="modal-title" ng-if="rows.length != 1">
14         [% l('Apply Binding Unit Template to [_1] Selected Distributions','{{rows.length}}') %]
15     </h4>
16     <h4 class="modal-title" ng-if="rows.length == 1">
17         [% l('Apply Binding Unit Template to [_1] Selected Distribution','{{rows.length}}') %]
18     </h4>
19 </div>
20
21 <div class="modal-body">
22     <div class="row">
23         <div class="col-md-8">
24             <label>
25                 [% l('Distribution Library') %]
26             </label>
27         </div>
28         <div class="col-md-4">
29             <label>
30                 [% l('Binding Unit Template') %]
31             </label>
32         </div>
33     </div>
34     <div class="row" ng-repeat="lib in libs">
35         <div class="col-md-8">
36             <label for="ou_{{lib.id}}">
37                 {{lib.name}}
38             </label>
39         </div>
40         <div class="col-md-4">
41             <select id="ou_{{lib.id}}"
42                 ng-model="args.bind_unit_template[lib.id]"
43                 ng-options="t.id as t.name for t in templates[lib.id]"
44                 class="form-control">
45                 <option value=""></option>
46             </select>
47         </div>
48     </div>
49 </div>
50
51 <div class="modal-footer">
52     <input type="submit" class="btn btn-primary" value="[% l('Update') %]"></input>
53     <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
54 </div>
55 </form>