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