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