Bug 5917 / Bug 6085 : Fixing not being able to change language
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / clone-rules.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Administration &rsaquo; Issuing Rules &rsaquo; Clone Issuing Rules</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body>
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'cat-search.inc' %]
8
9 <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">Issuing rules</a> &rsaquo; Clone issuing rules</div>
10
11 <div id="doc3" class="yui-t1">
12
13 <div id="bd">
14     <div id="yui-main">
15     <div class="yui-b">
16     <h2>Cloning issuing rules
17         [% IF ( frombranchname || tobranchname ) %]
18             [% IF ( frombranchname ) %] from "[% frombranchname %]"[% END %]
19             [% IF ( tobranchname ) %] to "[% tobranchname %]"[% END %]
20         [% END %]
21     </h2>
22
23     [% IF ( result ) %]
24         [% IF ( error ) %]
25             <div class="dialog alert">Cloning of issuing 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 Issuing rules</a>
30     [% ELSE %]
31
32         <p class="help">Use carefully ! If the destination library already has issuing 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                         [% FOREACH branchloo IN branchloop %]
41                         <option value="[% branchloo.value %]" [% IF ( branchloo.selected ) %]selected[% END %]>[% branchloo.branchname %]</option>
42                         [% END %]
43                 </select>
44                 [% IF ( tobranch ) %]<input type="hidden" name="tobranch" value="[% tobranch %]" />[% END %]
45             </fieldset>
46             [% END %]
47
48             [% UNLESS ( tobranch ) %]
49             <fieldset>
50                 <legend>Please choose the library to clone the rules to:</legend> 
51                 <label for="tobranch">Destination library:</label>
52                 <select name="tobranch" id="tobranch">
53                         <option value="">Default</option>
54                         [% FOREACH branchloo IN branchloop %]
55                         <option value="[% branchloo.value %]" [% IF ( branchloo.selected ) %]selected[% END %]>[% branchloo.branchname %]</option>
56                         [% END %]
57                 </select>
58                 [% IF ( frombranch ) %]<input type="hidden" name="frombranch" value="[% frombranch %]" />[% END %]
59             </fieldset>
60         [% END %]
61         <input type="submit" value="Submit" />
62         </form>
63
64     [% END %]
65     </div>
66
67 </div>
68 <div class="yui-b">
69 [% INCLUDE 'admin-menu.inc' %]
70 </div>
71 </div>
72 [% INCLUDE 'intranet-bottom.inc' %]