Bug 30952: Staff interface redesign (header)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / rotating_collections / transferCollection.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Branches %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Transfer collection &rsaquo; Rotating collections &rsaquo; Tools &rsaquo; Koha</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9 <body id="rcoll_transferCollection" class="tools rcoll">
10 [% WRAPPER 'header.inc' %]
11     [% INCLUDE 'cat-search.inc' %]
12 [% END %]
13
14 [% WRAPPER 'sub-header.inc' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
16     <ol>
17         <li>
18             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
19         </li>
20         <li>
21             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
22         </li>
23         <li>
24             <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a>
25         </li>
26         <li>
27             <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]">Collection <em>[% colTitle | html %]</em></a>
28         </li>
29         <li>
30             <a href="#" aria-current="page">
31                 Transfer collection
32             </a>
33         </li>
34     </ol>
35 </nav>
36 [% END %]
37
38 <div class="main container-fluid">
39     <div class="row">
40         <div class="col-sm-10 col-sm-push-2">
41             <main>
42
43                 <h1>Transfer collection <em>[% colTitle | html %]</em></h1>
44
45                 [% IF ( messages ) %]
46                     [% FOREACH message IN messages %]
47                         <div class="dialog [% m.type | html %]">
48                         [%- SWITCH message.code -%]
49                         [%- CASE 'limits' %]
50                             <p>Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits</p>
51                         [%- CASE 'enqueued' -%]
52                             <p>Item [% message.item.itemnumber | html %] queued behind [% message.found_transfer.reason | html %] transfer to [% Branches.GetName(message.found_transfer.tobranch) | html %]</p>
53                         [% END %]
54                         </div>
55                     [% END %]
56                 [% END %]
57
58                 [% IF ( transferSuccess ) %]
59                     <div class="dialog message">
60                         <p>Collection transferred successfully</p>
61                         <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
62                     </div>
63                 [% ELSIF ( transferFailure ) %]
64                     <div class="dialog alert">
65                         <p>Failed to transfer collection</p>
66                         <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
67                     </div>
68                 [% END %]
69
70                 [% IF ( transferSuccess ) %]
71                 [% ELSE %]
72                     <div>
73                         <form action="transferCollection.pl" method="post">
74                             <input type="hidden" name="colId" value="[% colId | html %]" />
75                             <fieldset class="rows">
76                                 <ol>
77                                     <li>
78                                         <label for="toBranch">Choose your library:</label>
79                                         <select id="toBranch" name="toBranch">
80                                             [% PROCESS options_for_libraries libraries => Branches.all( unfiltered => 1 ) %]
81                                         </select>
82                                     </li>
83                                 </ol>
84                             </fieldset>
85                             <fieldset class="action">
86                                 <input type="submit" value="Transfer collection"> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a>
87                             </fieldset>
88                         </form>
89                     </div>
90                 [% END %]
91
92             </main>
93         </div> <!-- /.col-sm-10.col-sm-push-2 -->
94
95         <div class="col-sm-2 col-sm-pull-10">
96             <aside>
97                 [% INCLUDE 'tools-menu.inc' %]
98             </aside>
99         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
100      </div> <!-- /.row -->
101
102 [% MACRO jsinclude BLOCK %]
103     [% Asset.js("js/tools-menu.js") | $raw %]
104     [% Asset.js("js/rotating-collections.js") | $raw %]
105 [% END %]
106
107 [% INCLUDE 'intranet-bottom.inc' %]