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