Bug 19108: Fix Stored XSS in classsources.pl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / offline_circ / list.tt
index d22cf5f..2500456 100644 (file)
@@ -1,14 +1,13 @@
     [% INCLUDE "doc-head-open.inc" %]
     <title>Koha &rsaquo; Circulation &rsaquo; Offline circulation</title>
     [% INCLUDE "doc-head-close.inc" %]
-    <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
-    <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
-    <script type="text/javascript" language="javascript">
+    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
+    <script type="text/javascript">
     //<![CDATA[
         $(document).ready(function() {
 
-        $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_('Uncheck all')+"<\/a>");
-        $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_('Check all')+"<\/a>");
+        $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Uncheck all")+"<\/a>");
+        $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Check all")+"<\/a>");
             $('#CheckNone').click(function() {
                 $("#operations").unCheckCheckboxes();
                 return false;
@@ -78,7 +77,8 @@
                                    <th>Date</th>
                                    <th>Action</th>
                                    <th>Barcode</th>
-                        <th>Card number</th>
+                                    <th>Card number</th>
+                                    <th>Amount</th>
                            </tr>
                        </thead>
                        <tbody>
                                <tr class="oc-[% operation.action %]">
                                    <td><input type="checkbox" name="operationid" value="[% operation.operationid %]" /></td>
                                        <td>[% operation.timestamp %]</td>
-                                       <td>[% operation.action %]</td>
+                            <td>
+                                [% SWITCH ( operation.action ) -%]
+                                    [%   CASE "issue" -%]
+                                        Check out
+                                    [%   CASE "return" -%]
+                                        Check in
+                                    [%   CASE "payment" -%]
+                                        Payment
+                                    [%   CASE # default case -%]
+                                        [% operation.action %]
+                                [% END -%]
+                            </td>
                                        <td>
                                            [% IF ( biblionumber ) %]
                                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber %]" title="[% operation.bibliotitle %]">[% operation.barcode %]</a>
                                            [% END %]
                                        </td>
                                        <td>
-                                       [% IF ( operation.actionissue ) %]
+                                       [% IF ( operation.actionissue || operation.actionpayment) %]
                                        [% IF ( operation.borrowernumber ) %]
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber %]" title="[% operation.borrower %]">[% operation.cardnumber %]</a>
                                        [% ELSE %]
                                        [% END %]
                                        [% END %]
                                        </td>
+                                        <td>[% operation.amount %]</td>
                                </tr>
                            [% END %]
                        </tbody>
 
         [% ELSE %]
 
-            <p>There is no pending offline operations.</p>
+            <p>There are no pending offline operations.</p>
 
         [% END %]