]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2
webstaff: give the Holds Shelf a template and print button
[working/Evergreen.git] / Open-ILS / src / templates / staff / admin / workstation / t_print_templates.tt2
1 <style>
2   /* TODO: move me */
3   .print-template-text {
4     height: 36em;
5     width: 100%;
6   }
7 </style>
8
9 <h2>[% l('Print Templates') %]</h2>
10
11 <div class="row">
12   <div class="col-md-2">[% l('Template Name') %]</div>
13   <div class="col-md-3">
14     <select class="form-control" ng-model="print.template_name" ng-change="template_changed()">
15       <option value="bills_current">[% l('Bills, Current') %]</option>
16       <option value="bills_historical">[% l('Bills, Historical') %]</option>
17       <option value="bill_payment">[% l('Bills, Payment') %]</option>
18       <option value="checkout">[% l('Checkout') %]</option>
19       <option value="hold_transit_slip">[% l('Hold Transit Slip') %]</option>
20       <option value="hold_shelf_slip">[% l('Hold Shelf Slip') %]</option>
21       <option value="holds_for_bibs">[% l('Holds for Bib Record') %]</option>
22       <option value="holds_for_patron">[% l('Holds for Patron') %]</option>
23       <option value="hold_pull_list">[% l('Hold Pull List') %]</option>
24       <option value="hold_shelf_list">[% l('Hold Shelf List') %]</option>
25       <option value="patron_address">[% l('Patron Address') %]</option>
26       <option value="patron_note">[% l('Patron Note') %]</option>
27       <option value="transit_slip">[% l('Transit Slip') %]</option>
28     </select>
29   </div>
30   <div class="col-md-7">
31     <div class="pull-right">
32       <button class="btn btn-default" ng-click="save_locally()">[% l('Save Locally') %]</button>
33     </div>
34   </div>
35   <!-- other stuff -->
36 </div>
37
38 <hr/>
39
40 <div class="row">
41   <div class="col-md-5">
42     <h3>[% l('Preview') %]</h3>
43     <div eg-print-template-output 
44       content="print.template_content" 
45       context="preview_scope"></div>
46   </div>
47   <div class="col-md-7">
48     <h3>[% l('Template') %]</h3>
49     <div ng-if="print.load_failed" class="alert alert-danger">
50       [% l(
51         "Unable to load template '[_1]'.  The web server returned an error.", 
52         '{{print.template_name}}') 
53       %]
54     </div>
55     <div>
56       <textarea ng-model="print.template_content" class="print-template-text">
57       </textarea>
58     </div>
59   </div> <!-- col -->
60 </div>
61