]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2
LP#1350042 Browser client templates/scripts (phase 1)
[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="patron_address">[% l('Patron Address') %]</option>
24       <option value="patron_note">[% l('Patron Note') %]</option>
25       <option value="transit_slip">[% l('Transit Slip') %]</option>
26     </select>
27   </div>
28   <div class="col-md-7">
29     <div class="pull-right">
30       <button class="btn btn-default" ng-click="save_locally()">[% l('Save Locally') %]</button>
31     </div>
32   </div>
33   <!-- other stuff -->
34 </div>
35
36 <hr/>
37
38 <div class="row">
39   <div class="col-md-5">
40     <h3>[% l('Preview') %]</h3>
41     <div eg-print-template-output 
42       content="print.template_content" 
43       context="preview_scope"></div>
44   </div>
45   <div class="col-md-7">
46     <h3>[% l('Template') %]</h3>
47     <div ng-if="print.load_failed" class="alert alert-danger">
48       [% l(
49         "Unable to load template '[_1]'.  The web server returned an error.", 
50         '{{print.template_name}}') 
51       %]
52     </div>
53     <div>
54       <textarea ng-model="print.template_content" class="print-template-text">
55       </textarea>
56     </div>
57   </div> <!-- col -->
58 </div>
59