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