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