Bug 16241 - Move staff client CSS out of language directory
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patroncards / print.tt
index 74f0dd0..bf22842 100644 (file)
@@ -1,6 +1,6 @@
     [% INCLUDE 'doc-head-open.inc' %]
-    <title>Koha &rsaquo; Tools &rsaquo; Patron Cards &rsaquo; Patron Card Printing/Exporting</title>
-    [% INCLUDE 'doc-head-close.inc' %]
+    <title>Koha &rsaquo; Tools &rsaquo; Patron cards &rsaquo; Patron card printing/exporting</title>
+    [% INCLUDE 'doc-head-close.inc' popup => 1%]
     <script type="text/javascript">
         //<![CDATA[
             function Done() {
@@ -19,7 +19,7 @@
                     <fieldset>
                     [% FOREACH batche IN batches %]
                         [% IF ( batche.label_ids ) %]
-                        <legend>[% batche.card_count %] Single Patron Cards</legend>
+                        <legend>[% batche.card_count %] Single patron cards</legend>
                         <p>
                                 <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>
                         </p>
@@ -29,7 +29,7 @@
                                 <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>
                         </p>
                         [% ELSE %]
-                        <legend>Card Batch Number [% batche.batch_id %]</legend>
+                        <legend>Card batch number [% batche.batch_id %]</legend>
                         <p>
                                 <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>
                         </p>
                     </fieldset>
 
                 <fieldset class="action">
-                    <input type="button" class="submit" id="done" onclick="parent.parent.GB_hide();" value="Done" />
+                    <input type="button" class="btn btn-default submit" id="done" onclick="parent.parent.GB_hide();" value="Done" />
                 </fieldset>
             </form>
+            [% ELSIF ( patronlist_id && template_id && layout_id ) %]
+                <h3>Click on the link to download the patron cards from the patron list.</h3>
+                    <p>
+                        <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id %]&amp;template_id=[% template_id %]&amp;layout_id=[% layout_id %]&amp;start_card=[% start_card %]">label_patronlist_[% patronlist_id %].pdf</a>
+                    </p>
             [% ELSE %]
             <h3>
                     [% IF ( label_ids ) %]
-                        [% IF ( card_count == 1 ) %]Exporting [% card_count %] patroncard[% ELSE %]Exporting [% card_count %] patroncards[% END %]
+                        [% IF ( card_count == 1 ) %]Exporting [% card_count %] patron card[% ELSE %]Exporting [% card_count %] patron cards[% END %]
                     [% ELSIF ( borrower_numbers ) %]
-                        [% IF ( borrower_count == 1 ) %]Exporting [% borrower_count %] patroncard[% ELSE %]Exporting [% borrower_count %] patroncards[% END %]
+                        [% IF ( borrower_count == 1 ) %]Exporting [% borrower_count %] patron card[% ELSE %]Exporting [% borrower_count %] patron cards[% END %]
+                    [% ELSIF ( patronlist_id ) %] Exporting from patron list
                     [% ELSE %]
                         [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] batch to export[% ELSE %][% multi_batch_count %] batches to export[% END %]
                     [% END %]
@@ -63,6 +69,7 @@
                 [% FOREACH borrower_number IN borrower_numbers %]
                     <input type="hidden" name="borrower_number" value="[% borrower_number.borrower_number %]" />
                 [% END %]
+                [% IF (patronlist_id) %] <input type="hidden" name="patronlist_id" value="[% patronlist_id %]" /> [% END %]
                 <fieldset class="rows">
                     <ol>
                         <li>
                             </select>
                         </li>
                         <li>
-                            <label style="width:9em" for="start_card">Enter starting card number: </label>
+                            <label style="width:9em" for="start_card">Enter starting card position: </label>
                             <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />
                         </li>
                     </ol>
                 </fieldset>
                 <fieldset class="action">
-                    <input type="submit" class="submit" value="Export" />
+                    <input type="submit" class="btn btn-default submit" value="Export" />
                     <a href="#" class="cancel" id="done" onclick="parent.parent.GB_hide();">Cancel</a>
                 </fieldset>
             </form>