Bug 15758: Koha::Libraries - Remove GetBranchesLoop
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / selectbranchprinter.tt
1 [% USE Branches %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Circulation &rsaquo; Set library</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <style type="text/css">
6     .noshow {display: none;}
7 </style>
8 </head>
9 <body id="circ_selectbranchprinter" class="circ">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'circ-search.inc' %]
12
13 <div id="breadcrumbs">
14          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
15 &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
16 &rsaquo; <a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
17 </div>
18
19 <div id="doc" class="yui-t7">
20   <div id="bd">
21     <div id="yui-main">
22       <div class="yui-b">
23
24 [% IF ( updated ) %]
25
26 <h2>Update succeeded</h2>
27 Updated:<ul>
28     [% FOREACH update IN updated %]
29     [% IF ( update.updated_branch ) %]
30         <li>Library: [% update.old_branch or "?" %] &rArr; [% update.LoginBranchcode or "?" %]</li>
31     [% ELSIF ( update.updated_printer ) %]
32       <!-- FIXME:  <li>Printer: [% update.old_printer or "?" %] &rArr; [% update.new_printer or "?" %]</li> -->
33     [% ELSE %]
34         <li>ERROR - unknown</li>
35     [% END %]
36     [% END %]
37     </ul>
38 <form method="post" action="[% referer or "/cgi-bin/koha/circ/circulation.pl" |html %]">
39     <div class="noshow">
40         [% FOREACH recycle_loo IN recycle_loop %]
41         <input type="text" name="[% recycle_loo.param %]" value="[% recycle_loo.value |html %]" />
42         [% END %]
43     </div>
44     <button type="submit">Continue</button>
45 </form>
46
47 [% ELSE %]
48
49 <form method="post" action="selectbranchprinter.pl">
50 <fieldset class="rows">
51     <legend>Set library</legend>
52     <ol>
53     [% IF ( singleBranchMode && !CAN_user_superlibrarian ) %]
54         <li>SingleBranchMode is ON.</li>
55     [% ELSE %]
56         <li><label for="branch">Choose library:</label>
57         <select name="branch" id="branch">
58             [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
59         </select></li>
60     [% END %]
61 <!--
62     [% IF ( printerloop ) %]
63         <li><label for="printer">Choose a network printer:</label>
64         <select name="printer" id="printer">
65             [% FOREACH printerloo IN printerloop %]
66                 [% IF ( printerloo.selected ) %]
67                     <option value="[% printerloo.value %]" selected="selected">[% printerloo.name %]</option>
68                 [% ELSE %]
69                     <option value="[% printerloo.value %]">[% printerloo.name %]</option>
70                 [% END %]
71             [% END %]
72         </select></li>
73     [% END %] -->
74     </ol>
75 </fieldset>
76 <fieldset class="action">
77     <input type="submit" value="Submit" />
78     <a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
79 </fieldset>
80 <div class="noshow">
81     [% FOREACH recycle_loo IN recycle_loop %]
82     <input type="text" name="[% recycle_loo.param %]" value="[% recycle_loo.value |html %]" />
83     [% END %]
84     <input type="hidden" name="oldreferer" value="[% referer or "/cgi-bin/koha/circ/circulation.pl" |html %]" />
85 </div>
86 </form>
87 <!-- /updated -->
88 [% END %]
89
90       </div>
91     </div>
92   </div>
93 [% INCLUDE 'intranet-bottom.inc' %]