Bug 26618: (QA follow-up) Update messages syntax
[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                         <div class="dialog [% m.type | html %]">
25                         [%- SWITCH message.code -%]
26                         [%- CASE 'limits' %]
27                             <p>Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits</p>
28                         [%- CASE 'enqueued' -%]
29                             <p>Item [% message.item.itemnumber | html %] queued behind [% message.found_transfer.reason | html %] transfer to [% Branches.GetName(message.found_transfer.tobranch) | html %]</p>
30                         [% END %]
31                         </div>
32                     [% END %]
33                 [% END %]
34
35                 [% IF ( transferSuccess ) %]
36                     <div class="dialog message">
37                         <p>Collection transferred successfully</p>
38                         <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
39                     </div>
40                 [% ELSIF ( transferFailure ) %]
41                     <div class="dialog alert">
42                         <p>Failed to transfer collection</p>
43                         <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
44                     </div>
45                 [% END %]
46
47                 [% IF ( transferSuccess ) %]
48                 [% ELSE %]
49                     <div>
50                         <form action="transferCollection.pl" method="post">
51                             <input type="hidden" name="colId" value="[% colId | html %]" />
52                             <fieldset class="rows">
53                                 <ol>
54                                     <li>
55                                         <label for="toBranch">Choose your library:</label>
56                                         <select id="toBranch" name="toBranch">
57                                             [% PROCESS options_for_libraries libraries => Branches.all( unfiltered => 1 ) %]
58                                         </select>
59                                     </li>
60                                 </ol>
61                             </fieldset>
62                             <fieldset class="action">
63                                 <input type="submit" value="Transfer collection"> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a>
64                             </fieldset>
65                         </form>
66                     </div>
67                 [% END %]
68
69             </main>
70         </div> <!-- /.col-sm-10.col-sm-push-2 -->
71
72         <div class="col-sm-2 col-sm-pull-10">
73             <aside>
74                 [% INCLUDE 'tools-menu.inc' %]
75             </aside>
76         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
77      </div> <!-- /.row -->
78
79 [% MACRO jsinclude BLOCK %]
80     [% Asset.js("js/tools-menu.js") | $raw %]
81     [% Asset.js("js/rotating-collections.js") | $raw %]
82 [% END %]
83
84 [% INCLUDE 'intranet-bottom.inc' %]