Bug 19608: (QA follow-up) Fix redirect on localization modal
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / clone-rules.tt
1 [% USE Branches %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Administration &rsaquo; Circulation and fine rules &rsaquo; Clone circulation and fine rules</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7 <body id="admin_clone-rules" class="admin">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'prefs-admin-search.inc' %]
10
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <a href="/cgi-bin/koha/admin/smart-rules.pl">Circulation and fine rules</a> &rsaquo; Clone circulation and fine rules</div>
12
13 <div id="doc3" class="yui-t1">
14
15 <div id="bd">
16     <div id="yui-main">
17     <div class="yui-b">
18     <h2>Cloning circulation and fine rules
19         [% IF frombranch %] from "[% Branches.GetName( frombranch ) %]"[% END %]
20         [% IF tobranch %] to "[% Branches.GetName( tobranch ) %]"[% END %]
21     </h2>
22
23     [% IF ( result ) %]
24         [% IF ( error ) %]
25         <div class="dialog alert">Cloning of circulation and fine rules failed!</div>
26         [% ELSE %]
27             <div class="dialog message"><p>The rules have been cloned.</p></div>
28         [% END %]
29     <a href="/cgi-bin/koha/admin/smart-rules.pl">Return to circulation and fine rules</a>
30     [% ELSE %]
31
32     <p class="help">Use carefully! If the destination library already has circulation and fine rules, they will be deleted without warning!</p>
33     <form action="/cgi-bin/koha/admin/clone-rules.pl" method="post">
34         [% UNLESS ( frombranch ) %]
35             <fieldset>
36                 <legend>Please choose a library to clone rules from:</legend>
37                 <label for="frombranch">Source library:</label>
38                 <select name="frombranch" id="frombranch">
39                     <option value="">Default</option>
40                     [% PROCESS options_for_libraries libraries => Branches.all() %]
41                 </select>
42                 [% IF ( tobranch ) %]<input type="hidden" name="tobranch" value="[% tobranch %]" />[% END %]
43             </fieldset>
44         [% END %]
45
46         [% UNLESS ( tobranch ) %]
47             <fieldset>
48             <legend>Please choose the library to clone the rules to:</legend>
49             <label for="tobranch">Destination library:</label>
50             <select name="tobranch" id="tobranch">
51                 <option value="">Default</option>
52                 [% PROCESS options_for_libraries libraries => Branches.all() %]
53             </select>
54             [% IF ( frombranch ) %]<input type="hidden" name="frombranch" value="[% frombranch %]" />[% END %]
55             </fieldset>
56         [% END %]
57         <input type="submit" value="Submit" />
58     </form>
59
60     [% END %]
61     </div>
62
63 </div>
64 <div class="yui-b">
65 [% INCLUDE 'admin-menu.inc' %]
66 </div>
67 </div>
68
69 [% MACRO jsinclude BLOCK %]
70     <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
71 [% END %]
72
73 [% INCLUDE 'intranet-bottom.inc' %]