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