+[% USE raw %]
+[% USE Asset %]
+[% USE Branches %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Tools › Rotating Collections › Transfer Collection</title>
+<title>Koha › Tools › Rotating collections › 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> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating Collections</a> › 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> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> › <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | html %]">Collection <i>[% colTitle | html %]</i></a> › 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' %]