Merge remote-tracking branch 'kc/master' into merged_5549
[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                                 [% IF ( branchloo.selected ) %]
42                                         <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
43                                 [% ELSE %]
44                                         <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
45                                 [% END %]
46                         [% END %]
47                 </select>
48                 [% IF ( tobranch ) %]<input type="hidden" name="tobranch" value="[% tobranch %]" />[% END %]
49             </fieldset>
50             [% END %]
51
52             [% UNLESS ( tobranch ) %]
53             <fieldset>
54                 <legend>Please choose the library to clone the rules to:</legend> 
55                 <label for="tobranch">Destination library:</label>
56                 <select name="tobranch" id="tobranch">
57                         <option value="">Default</option>
58                         [% FOREACH branchloo IN branchloop %]
59                                 [% IF ( branchloo.selected ) %]
60                                         <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
61                                 [% ELSE %]
62                                         <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
63                                 [% END %]
64                         [% END %]
65                 </select>
66                 [% IF ( frombranch ) %]<input type="hidden" name="frombranch" value="[% frombranch %]" />[% END %]
67             </fieldset>
68         [% END %]
69         <input type="submit" value="Submit" />
70         </form>
71
72     [% END %]
73     </div>
74
75 </div>
76 <div class="yui-b">
77 [% INCLUDE 'admin-menu.inc' %]
78 </div>
79 </div>
80 [% INCLUDE 'intranet-bottom.inc' %]