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