Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / set-library.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>
7     .noshow {display: none;}
8 </style>
9 </head>
10 <body id="circ_set-library" 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/set-library.pl">Set library</a>
18 </div>
19
20 <div class="main container-fluid">
21     <div class="row">
22         <div class="col-sm-12">
23             <main>
24                 <div class="row">
25
26                 [% IF Koha.Preference('CircSidebar') %]
27                     <div class="col-sm-10 col-sm-push-2">
28                 [% ELSE %]
29                     <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
30                 [% END %]
31
32
33 [% IF ( updated ) %]
34
35 <h2>Update succeeded</h2>
36 Updated:<ul>
37     [% FOREACH update IN updated %]
38     [% IF ( update.updated_branch ) %]
39         <li>Library: [% update.old_branch or "?" | html %] &rArr; [% update.new_branch or "?" | html %]</li>
40     [% ELSE %]
41         <li>ERROR - unknown</li>
42     [% END %]
43     [% END %]
44     </ul>
45 <form method="post" action="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]">
46     <div class="noshow">
47         [% FOREACH recycle_loo IN recycle_loop %]
48         <input type="text" name="[% recycle_loo.param | html %]" value="[% recycle_loo.value | html %]" />
49         [% END %]
50     </div>
51     <button type="submit">Continue</button>
52 </form>
53
54 [% ELSE %]
55
56 <form method="post" action="set-library.pl">
57 <fieldset class="rows">
58     <legend>Set library</legend>
59     <ol>
60     [% IF ( singleBranchMode && !CAN_user_superlibrarian ) %]
61         <li>SingleBranchMode is ON.</li>
62     [% ELSE %]
63         <li><label for="branch">Choose library:</label>
64         <select name="branch" id="branch">
65             [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
66         </select></li>
67     [% END %]
68     </ol>
69 </fieldset>
70 <fieldset class="action">
71     <input type="submit" value="Submit" />
72     <a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
73 </fieldset>
74 <div class="noshow">
75     [% FOREACH recycle_loo IN recycle_loop %]
76     <input type="text" name="[% recycle_loo.param | html %]" value="[% recycle_loo.value | html %]" />
77     [% END %]
78     <input type="hidden" name="oldreferer" value="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]" />
79 </div>
80 </form>
81 <!-- /updated -->
82 [% END %]
83
84                     [% IF Koha.Preference('CircSidebar') %]
85                             </div> <!-- /.col-sm-10.col-sm-push-2 -->
86                             <div class="col-sm-2 col-sm-pull-10">
87                                 <aside>
88                                     [% INCLUDE 'circ-nav.inc' %]
89                                 </aside>
90                             </div> <!-- /.col-sm-2.col-sm-pull-10 -->
91                         </div> <!-- /.row -->
92                     [% END %]
93
94             </main>
95         </div> <!-- /.col-sm-12 -->
96     </div> <!-- /.row -->
97
98 [% INCLUDE 'intranet-bottom.inc' %]