Bug 13618: Add html filters to all the variables
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / rotating_collections / transferCollection.tt
index cabe604..f91ac72 100644 (file)
@@ -1,48 +1,68 @@
+[% USE raw %]
+[% USE Asset %]
+[% USE Branches %]
+[% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Tools &rsaquo; Rotating Collections &rsaquo; Transfer Collection</title>
+<title>Koha &rsaquo; Tools &rsaquo; Rotating collections &rsaquo; Transfer collection</title>
 [% INCLUDE 'doc-head-close.inc' %]
 </head>
-<body>
+<body id="rcoll_transferCollection" class="tools rcoll">
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.inc' %]
 
-<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; Transfer Collection</div>
-<div id="doc3">
-<div id="bd">
-        <div class="yui-gb">
-      <h1>Rotating Collections: Transfer Collection</h1>
-    <br />
-      [% IF ( transferSuccess ) %]
-        <div>Collection Transferred Successfully</div>
-      [% END %]
-
-      [% IF ( transferFailure ) %]
-        <div>Failed to Transfer Collection!</div>
-        <div>Reason: <strong>[% errorMessage %]</strong></div>
-      [% END %]
-
-      [% IF ( transferSuccess ) %]
-      [% ELSE %]
-        <div>
-          <form action="transferCollection.pl" method="post">
-            <input type="hidden" name="colId" value="[% colId %]">
-  
-            <label for="toBranch">Choose your Library:</label>
-            <select name="toBranch">
-              [% FOREACH branchoptionloo IN branchoptionloop %]
-                [% IF ( branchoptionloo.selected ) %]<option value="[% branchoptionloo.code %]" selected="selected">[% branchoptionloo.name %]</option>[% ELSE %]<option value="[% branchoptionloo.code %]">[% branchoptionloo.name %]</option>[% END %]
-              [% END %]
-            </select>
-            <INPUT type="submit" value="Transfer Collection">
-          </form>
+<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 <i>[% colTitle | html %]</i></a> &rsaquo; Transfer collection</div>
+
+<div id="doc3" class="yui-t2">
+    <div id="bd">
+        <div id="yui-main">
+            <div class="yui-b">
+
+                <h1>Transfer collection <i>[% colTitle | html %]</i></h1>
+
+                [% IF ( transferSuccess ) %]
+                    <div class="dialog message">
+                        <p>Collection transferred successfully</p>
+                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
+                    </div>
+                [% ELSIF ( transferFailure ) %]
+                    <div class="dialog alert">
+                        <p>Failed to transfer collection</p>
+                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
+                    </div>
+                [% END %]
+
+                [% IF ( transferSuccess ) %]
+                [% ELSE %]
+                    <div>
+                        <form action="transferCollection.pl" method="post">
+                            <input type="hidden" name="colId" value="[% colId | html %]" />
+                            <fieldset class="rows">
+                                <ol>
+                                    <li>
+                                        <label for="toBranch">Choose your library:</label>
+                                        <select id="toBranch" name="toBranch">
+                                            [% PROCESS options_for_libraries libraries => Branches.all( unfiltered => 1 ) %]
+                                        </select>
+                                    </li>
+                                </ol>
+                            </fieldset>
+                            <fieldset class="action">
+                                <input type="submit" value="Transfer collection"> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a>
+                            </fieldset>
+                        </form>
+                    </div>
+                [% END %]
+
+            </div> <!-- /.yui-b -->
+        </div> <!-- /#yui-main -->
+        <div class="yui-b">
+            [% INCLUDE 'tools-menu.inc' %]
         </div>
-      [% END %]
+    </div> <!-- /#bd -->
 
-      <div>
-        <br/>
-        <input type="button" value="Return to Rotating Collections Home" onclick="window.location.href='rotatingCollections.pl'">
-      </div>
+[% MACRO jsinclude BLOCK %]
+    [% Asset.js("js/tools-menu.js") | $raw %]
+    [% Asset.js("js/rotating-collections.js") | $raw %]
+[% END %]
 
-</div>
-</div>
 [% INCLUDE 'intranet-bottom.inc' %]