Bug 2780 - Capitalize strings consistently (patron cards)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patroncards / print.tt
1     [% INCLUDE 'doc-head-open.inc' %]
2     <title>Koha &rsaquo; Tools &rsaquo; Patron cards &rsaquo; Patron card printing/exporting</title>
3     [% INCLUDE 'doc-head-close.inc' %]
4     <script type="text/javascript">
5         //<![CDATA[
6             function Done() {
7                 window.location = "[% referer %]";
8             };
9         //]]>
10     </script>
11     <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
12 </head>
13 <body id="pcard_print" class="tools pcard">
14     <div id="custom-doc" class="yui-t2">
15         <div id="bd">
16             [% IF ( batches ) %]
17             <form>
18                 <h3>Click on the following link(s) to download the exported batch(es).</h3>
19                     <fieldset>
20                     [% FOREACH batche IN batches %]
21                         [% IF ( batche.label_ids ) %]
22                         <legend>[% batche.card_count %] Single patron cards</legend>
23                         <p>
24                                 <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_card=[% batche.start_card %][% batche.label_ids %]">label_single_[% batche.card_count %].pdf</a>
25                         </p>
26                         [% ELSIF ( batche.borrower_numbers ) %]
27                         <legend>[% batche.card_count %] Single Patron Cards</legend>
28                         <p>
29                                 <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_card=[% batche.start_card %][% batche.borrower_numbers %]">label_single_[% batche.card_count %].pdf</a>
30                         </p>
31                         [% ELSE %]
32                         <legend>Card batch number [% batche.batch_id %]</legend>
33                         <p>
34                                 <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_card=[% batche.start_card %]">label_batch_[% batche.batch_id %].pdf</a>
35                         </p>
36                         [% END %]
37                     [% END %]
38                     </fieldset>
39
40                 <fieldset class="action">
41                     <input type="button" class="submit" id="done" onclick="parent.parent.GB_hide();" value="Done" />
42                 </fieldset>
43             </form>
44             [% ELSE %]
45             <h3>
46                     [% IF ( label_ids ) %]
47                         [% IF ( card_count == 1 ) %]Exporting [% card_count %] patroncard[% ELSE %]Exporting [% card_count %] patroncards[% END %]
48                     [% ELSIF ( borrower_numbers ) %]
49                         [% IF ( borrower_count == 1 ) %]Exporting [% borrower_count %] patroncard[% ELSE %]Exporting [% borrower_count %] patroncards[% END %]
50                     [% ELSE %]
51                         [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] batch to export[% ELSE %][% multi_batch_count %] batches to export[% END %]
52                     [% END %]
53             </h3>
54             <form name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">
55                 <input type="hidden" name="op" value="export" />
56                 <input type="hidden" name="referer" value="[% referer %]" />
57                 [% FOREACH batch_id IN batch_ids %]
58                     <input type="hidden" name="batch_id" value="[% batch_id.batch_id %]" />
59                 [% END %]
60                 [% FOREACH label_id IN label_ids %]
61                     <input type="hidden" name="label_id" value="[% label_id.label_id %]" />
62                 [% END %]
63                 [% FOREACH borrower_number IN borrower_numbers %]
64                     <input type="hidden" name="borrower_number" value="[% borrower_number.borrower_number %]" />
65                 [% END %]
66                 <fieldset class="rows">
67                     <ol>
68                         <li>
69                             <label style="width:9em" for="template_id">Select a template to be applied: </label>
70                             <select name="template_id" id="template_id">
71                                 [% FOREACH template IN templates %]
72                                 <option value="[% template.template_id %]">[% template.template_code %]</option>
73                                 [% END %]
74                             </select>
75                         </li>
76                         <li>
77                             <label style="width:9em" for="layout_id">Select a layout to be applied: </label>
78                             <select name="layout_id" id="layout_id">
79                                 [% FOREACH layout IN layouts %]
80                                 <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
81                                 [% END %]
82                             </select>
83                         </li>
84                         <li>
85                             <label style="width:9em" for="start_card">Enter starting card number: </label>
86                             <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />
87                         </li>
88                     </ol>
89                 </fieldset>
90                 <fieldset class="action">
91                     <input type="submit" class="submit" value="Export" />
92                     <a href="#" class="cancel" id="done" onclick="parent.parent.GB_hide();">Cancel</a>
93                 </fieldset>
94             </form>
95             [% END %]
96         </div>
97     [% INCLUDE 'popup-bottom.inc' %]