Bug 26118: Move translatable strings out of tags/review.tt and into tags-review.js
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patroncards / print.tt
1 [% USE Asset %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4     <title>Koha &rsaquo; Tools &rsaquo; Patron cards &rsaquo; Patron card printing/exporting</title>
5     [% INCLUDE 'doc-head-close.inc' popup => 1%]
6 </head>
7
8 <body id="pcard_print" class="tools pcard">
9     <div class="container-fluid">
10             [% IF ( batches ) %]
11             <form>
12                 <h3>Click on the following link(s) to download the exported batch(es).</h3>
13                     <fieldset>
14                     [% FOREACH batche IN batches %]
15                         [% IF ( batche.label_ids ) %]
16                         <legend>[% batche.card_count | html %] Single patron cards</legend>
17                         <p>
18                                 <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script | html %]?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %][% batche.label_ids | html %]">label_single_[% batche.card_count | html %].pdf</a>
19                         </p>
20                         [% ELSIF ( batche.borrower_numbers ) %]
21                         <legend>[% batche.card_count | html %] Single Patron Cards</legend>
22                         <p>
23                                 <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script | html %]?template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %][% batche.borrower_numbers | html %]">label_single_[% batche.card_count | html %].pdf</a>
24                         </p>
25                         [% ELSE %]
26                         <legend>Card batch number [% batche.batch_id | html %]</legend>
27                         <p>
28                                 <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %]">label_batch_[% batche.batch_id | html %].pdf</a>
29                         </p>
30                         [% END %]
31                     [% END %]
32                     </fieldset>
33
34                 <fieldset class="action">
35                     <input type="button" class="gb-close" value="Done" />
36                 </fieldset>
37             </form>
38             [% ELSIF ( patronlist_id && template_id && layout_id ) %]
39                 <div id="export_patron_list">
40                     <h3>Click on the link to download the patron cards from the patron list.</h3>
41                     <p>
42                         <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id | html %]&amp;template_id=[% template_id | html %]&amp;layout_id=[% layout_id | html %]&amp;layout_back_id=[% layout_back_id | html %]&amp;start_card=[% start_card | html %]">label_patronlist_[% patronlist_id | html %].pdf</a>
43                     </p>
44                 </div>
45             [% ELSE %]
46             <h3>
47                     [% IF ( label_ids ) %]
48                         [% IF ( card_count == 1 ) %]Exporting [% card_count | html %] patron card[% ELSE %]Exporting [% card_count | html %] patron cards[% END %]
49                     [% ELSIF ( borrower_numbers ) %]
50                         [% IF ( borrower_count == 1 ) %]Exporting [% borrower_count | html %] patron card[% ELSE %]Exporting [% borrower_count | html %] patron cards[% END %]
51                     [% ELSIF ( patronlist_id ) %] Exporting from patron list
52                     [% ELSE %]
53                         [% IF ( multi_batch_count == 1 ) %][% multi_batch_count | html %] batch to export[% ELSE %][% multi_batch_count | html %] batches to export[% END %]
54                     [% END %]
55             </h3>
56             <form id="exportingf" name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">
57                 <input type="hidden" name="op" value="export" />
58                 <input type="hidden" name="referer" value="[% referer | html %]" />
59                 [% FOREACH batch_id IN batch_ids %]
60                     <input type="hidden" name="batch_id" value="[% batch_id.batch_id | html %]" />
61                 [% END %]
62                 [% FOREACH label_id IN label_ids %]
63                     <input type="hidden" name="label_id" value="[% label_id.label_id | html %]" />
64                 [% END %]
65                 [% FOREACH borrower_number IN borrower_numbers %]
66                     <input type="hidden" name="borrower_number" value="[% borrower_number.borrower_number | html %]" />
67                 [% END %]
68                 [% IF (patronlist_id) %] <input type="hidden" name="patronlist_id" value="[% patronlist_id | html %]" /> [% END %]
69                 <fieldset class="rows">
70                     <ol>
71                         <li>
72                             <label style="width:9em" for="template_id">Select a template to be applied: </label>
73                             <select name="template_id" id="template_id">
74                                 [% FOREACH template IN templates %]
75                                 <option value="[% template.template_id | html %]">[% template.template_code | html %]</option>
76                                 [% END %]
77                             </select>
78                         </li>
79                         <li>
80                             <label style="width:9em" for="layout_id">Select a layout to be applied: </label>
81                             <select name="layout_id" id="layout_id">
82                                 [% FOREACH layout IN layouts %]
83                                 <option value="[% layout.layout_id | html %]">[% layout.layout_name | html %]</option>
84                                 [% END %]
85                             </select>
86                         </li>
87                         <li>
88                             <label style="width:9em" for="layout_back_id">Select a layout for back side: </label>
89                             <select name="layout_back_id" id="layout_back_id">
90                                 <option value="0">Back side layout not used</option>
91                                 [% FOREACH layout IN layouts %]
92                                 <option value="[% layout.layout_id | html %]">[% layout.layout_name | html %]</option>
93                                 [% END %]
94                             </select>
95                             <span class="hint">Used for duplex printers (needs a '1 up template')</span>
96                         </li>
97
98                         <li>
99                             <label style="width:9em" for="start_card">Enter starting card position: </label>
100                             <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />
101                         </li>
102                     </ol>
103                 </fieldset>
104                 <fieldset class="action">
105                     <input type="submit" value="Export" />
106                     <a href="#" class="cancel gb-close">Cancel</a>
107                 </fieldset>
108             </form>
109             [% END %]
110     </div>
111
112 [% MACRO jsinclude BLOCK %]
113     [% INCLUDE 'greybox.inc' %]
114     <script>
115         function Done() {
116             window.location = "[% referer | html %]";
117         };
118         $(document).ready(function(){
119             $(".gb-close").on("click",function(){
120                 parent.parent.GB_hide();
121             });
122         });
123     </script>
124 [% END %]
125
126 [% INCLUDE 'popup-bottom.inc' %]