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