Bug 34188: Require Library Branch Selection when Logging in
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / rotating_collections / transferCollection.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Branches %]
4 [% PROCESS 'i18n.inc' %]
5 [% SET footerjs = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>[% FILTER collapse %]
8     [% t("Transfer collection") | html %] &rsaquo;
9     [% tx("Collection '{collection_title}'", { collection_title = colTitle }) | html %] &rsaquo;
10     [% t("Rotating collections") | html %] &rsaquo;
11     [% t("Tools") | html %] &rsaquo;
12     [% t("Koha") | html %]
13 [% END %]</title>
14 [% INCLUDE 'doc-head-close.inc' %]
15 </head>
16 <body id="rcoll_transferCollection" class="tools rcoll">
17 [% WRAPPER 'header.inc' %]
18     [% INCLUDE 'cat-search.inc' %]
19 [% END %]
20
21 [% WRAPPER 'sub-header.inc' %]
22     [% WRAPPER breadcrumbs %]
23         [% WRAPPER breadcrumb_item %]
24             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
25         [% END %]
26         [% WRAPPER breadcrumb_item %]
27             <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a>
28         [% END %]
29         [% WRAPPER breadcrumb_item %]
30             <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]">[% tx("Collection '{collection_title}'", { collection_title = colTitle }) | html %]</em></a>
31         [% END %]
32         [% WRAPPER breadcrumb_item bc_active= 1 %]
33             <span>Transfer collection</span>
34         [% END %]
35     [% END #/ WRAPPER breadcrumbs %]
36 [% END #/ WRAPPER sub-header.inc %]
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>[% tx("Transfer collection '{collection_title}'", { collection_title = colTitle }) | html %]</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" class="btn btn-primary" 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' %]