Fixes to make all label/patron card templates uniform
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-manager.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha &rsaquo; <!-- TMPL_IF EXPR="(type eq 'labels')" -->Labels<!-- TMPL_ELSIF EXPR="(type eq 'patroncards')" -->Patron Cards<!-- /TMPL_IF --></title>
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 </head>
4 <body>
5 <!-- TMPL_INCLUDE NAME="header.inc" -->
6 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
7
8 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <!-- TMPL_IF EXPR="(type eq 'labels')" -->Labels<!-- TMPL_ELSIF EXPR="(type eq 'patroncards')" -->Patron Cards<!-- /TMPL_IF --></div>
9  <div id="doc3" class="yui-t2">
10   <div id="bd">
11    <div id="yui-main">
12         <div class="yui-b">
13
14 <!-- TMPL_IF NAME="message" -->
15         <!-- TMPL_LOOP NAME="message_loop" -->
16         <div style="color: red; margin: 5pt; font-weight: bold;" class="message"><!-- TMPL_VAR NAME="message_text" --></div>
17         <!-- /TMPL_LOOP -->
18 <!-- /TMPL_IF -->
19
20 <!-- TMPL_IF NAME="batch_id" -->
21 <!-- TMPL_INCLUDE NAME="tools-labels-batches-toolbar.inc" -->
22 <!-- TMPL_IF EXPR="(type eq 'labels')" -->
23 <div class="yui-g">
24     <div class="yui-u first">
25     <h2>Items to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" -->  (<!-- TMPL_VAR NAME="batch_count" -->  items)</h2>
26     <table>
27         <tr>
28             <th>Label<br />Num.</th>
29             <th>Summary</th>
30             <th>Item<br />Type</th>
31             <th>Barcode</th>
32             <th>Delete</th>
33         </tr>
34         <!-- TMPL_LOOP NAME="resultsloop" -->
35         <tr>
36             <td><!-- TMPL_VAR NAME="labelno" --></td>
37             <td><b><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" --></a></b> : <!-- TMPL_VAR NAME="author" --> : <!-- TMPL_VAR NAME="isbn" --></td>
38             <td><!-- TMPL_VAR NAME="itemtype" --></td>
39             <td><!-- TMPL_VAR NAME="barcode" --></td>
40             <td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&amp;labelid=<!-- TMPL_VAR NAME="labelid" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=labels">Delete</a></td>
41                             <!-- FIXME: should use POST to change server state, not GET -->
42         </tr>
43         <!-- /TMPL_LOOP -->
44     </table>
45     </div>
46 <!-- TMPL_ELSIF EXPR="(type eq 'patroncards')" -->
47 <div class="yui-g">
48     <div class="yui-u first">
49     <h2>Patron Cards to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" -->  (<!-- TMPL_VAR NAME="batch_count" -->  items)</h2>
50     <table>
51         <tr>
52             <th>Card<br />Num.</th>
53             <th>Patron Name</th>
54             <th>Borrower Number</th>
55             <th>Card Number</th>
56             <th>Delete</th>
57         </tr>
58         <!-- TMPL_LOOP NAME="resultsloop" -->
59         <tr>
60             <td><!-- TMPL_VAR NAME="cardno" --></td>
61             <td><b><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"> <!-- TMPL_VAR NAME="title" -->. <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a></b></td>
62             <td><!-- TMPL_VAR NAME="borrowernumber" --></td>
63             <td><!-- TMPL_VAR NAME="cardnumber" --></td>
64             <td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&amp;cardid=<!-- TMPL_VAR NAME="cardid" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=patroncards">Delete</a></td>
65                             <!-- FIXME: should use POST to change server state, not GET -->
66         </tr>
67         <!-- /TMPL_LOOP -->
68     </table>
69     </div>
70 <!-- /TMPL_IF --><!-- /type -->
71     <div class="yui-u">
72         <!-- TMPL_INCLUDE NAME="label-status.inc" -->
73     </div>
74 </div>
75 <!-- TMPL_ELSE -->
76 <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
77 <!-- TMPL_IF EXPR="(type eq 'labels')" -->
78 <!-- TMPL_IF NAME="batches" -->
79     <div class="yui-g">
80         <div class="yui-u first">
81             <h2>Label Batches</h2>
82             <table>
83                 <tr>
84                     <th>ID</th>
85                     <th>#</th>
86                     <th>Edit</th>
87                     <th>Delete</th>
88                     <th>Print</th>
89                 </tr>
90                 <!-- TMPL_LOOP NAME="batches" -->
91                 <tr>
92                     <td><!-- TMPL_VAR NAME="batch_id" --></td>
93                     <td><!-- TMPL_VAR NAME="num" --> records</td>
94                     <td><a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=labels">Edit</a></td>
95                     <td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=labels">Delete</a><!-- FIXME: should use POST to change server state, not GET --></td>
96                     <td><a style="float: left;"  href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=labels">Generate PDF for Batch  <!-- TMPL_VAR NAME="batch_id" --></a></td>
97                 </tr>
98                 <!-- /TMPL_LOOP -->
99             </table>
100         </div>
101         <div class="yui-u">
102         <!-- TMPL_INCLUDE NAME="label-status.inc" -->
103         </div>
104     </div>
105 <!-- TMPL_ELSE -->
106     <div class="yui-g">
107         <div class="yui-u first">
108             <fieldset class="brief">
109             <legend>No Label Batches Currently Defined</legend>
110             <div class="hint">
111                 Select "New Label Batch" to create a Label batch.
112             </div>
113             </fieldset>
114         </div>
115         <div class="yui-u">
116         <!-- TMPL_INCLUDE NAME="label-status.inc" -->
117         </div>
118     </div>
119 <!-- /TMPL_IF --><!-- /batches -->
120 <!-- TMPL_ELSIF EXPR="(type eq 'patroncards')" -->
121 <!-- TMPL_IF NAME="batches" -->
122     <div class="yui-g">
123         <div class="yui-u first">
124             <h2>Patron Card Batches</h2>
125             <table>
126                 <tr>
127                     <th>ID</th>
128                     <th>#</th>
129                     <th>Edit</th>
130                     <th>Delete</th>
131                     <th>Print</th>
132                 </tr>
133                 <!-- TMPL_LOOP NAME="batches" -->
134                 <tr>
135                     <td><!-- TMPL_VAR NAME="batch_id" --></td>
136                     <td><!-- TMPL_VAR NAME="num" --> records</td>
137                     <td><a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=patroncards">Edit</a></td>
138                     <td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=patroncards">Delete</a><!-- FIXME: should use POST to change server state, not GET --></td>
139                     <td><a style="float: left;"  href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=patroncards">Generate PDF for Batch  <!-- TMPL_VAR NAME="batch_id" --></a></td>
140                 </tr>
141                 <!-- /TMPL_LOOP -->
142             </table>
143         </div>
144         <div class="yui-u">
145             <!-- TMPL_INCLUDE NAME="label-status.inc" -->
146         </div>
147     </div>
148 <!-- TMPL_ELSE -->
149     <div class="yui-g">
150         <div class="yui-u first">
151             <fieldset class="brief">
152             <legend>No Patron Card Batches Currently Defined</legend>
153             <div class="hint">
154                 Select "New Patron Card Batch" to create a Label batch.
155             </div>
156             </fieldset>
157         </div>
158         <div class="yui-u">
159             <!-- TMPL_INCLUDE NAME="label-status.inc" -->
160         </div>
161     </div>
162 <!-- /TMPL_IF --><!-- /batches -->
163 <!-- /TMPL_IF --><!-- /type -->
164 <!-- /TMPL_IF --><!-- batch_id -->
165 </div>
166 </div>
167 <div class="yui-b">
168 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
169 </div>
170 </div>
171 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->