Bug 9416: (follow-up) fix neworderempty and templates
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / aqbasketuser_search.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Basket User Search</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4
5 <style type="text/css">
6     #custom-doc {
7         width:44.46em;
8         *width:43.39em;
9         min-width:578px;
10         margin:auto;
11         text-align:left;
12     }
13 </style>
14
15 <script type="text/javascript">
16 //<![CDATA[
17     // modify parent window owner element
18     function add_user(borrowernumber, borrowername) {
19         var p = window.opener;
20         if(p.add_basket_user(borrowernumber, borrowername) < 0) {
21             alert(_("Borrower '" + borrowername + "' is already in the list."));
22         }
23     }
24 //]]>
25 </script>
26
27 </head>
28 <body>
29 <div id="custom-doc" class="yui-t7">
30   <div id="bd">
31     <div class="yui-g">
32
33       <h3>Search for Basket User</h3>
34       <form action="/cgi-bin/koha/acqui/aqbasketuser_search.pl" method="post">
35         <fieldset>
36           <input type="hidden" name="op" id="op" value="do_search" />
37           <input type="text" name="q" id="q" value="[% q %]" class="focus" />
38           <input type="submit" class="button" value="Search" />
39         </fieldset>
40         <div class="hint">Only staff with superlibrarian or acquisitions permissions (or order_manage permission if granular permissions are enabled) are returned in the search results</div>
41       </form>
42
43 [% IF (q) %]
44     <p>Searched for <span class="ex">[% q %]</span>, [% nresults %] patron(s) found.</p>
45 [% END %]
46 [% IF ( users_loop ) %]
47     <table>
48       <thead>
49         <tr>
50             <th>Cardnumber</th>
51             <th>Name</th>
52             <th>Branch</th>
53             <th>Categorycode</th>
54             <th>Select?</th>
55         </tr>
56       </thead>
57       <tbody>
58         [% FOREACH user IN users_loop %]
59           [% IF ( user.toggle ) %]
60             <tr>
61           [% ELSE %]
62             <tr class="highlight">
63           [% END %]
64                 <td>[% user.cardnumber %]</td>
65                 <td>[% user.surname %], [% user.firstname %]</td>
66                 <td>[% user.branchcode %]</td>
67                 <td>[% user.categorycode %]</td>
68                 <td>
69                     <a style="cursor:pointer" onclick="add_user('[% user.borrowernumber %]', '[% user.firstname %] [% user.surname %]');">Add</a>
70                 </td>
71             </tr>
72         [% END %]
73     </table>
74 [% END %]
75
76 <div id="closewindow"><a href="#" class="close">Close</a></div>
77 </div>
78 </div>
79 [% INCLUDE 'intranet-bottom.inc' %]