Bug 27846: admin folder
[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 <nav aria-label="Breadcrumb" class="breadcrumb">
14     <ol>
15         <li>
16             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
17         </li>
18         <li>
19             <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
20         </li>
21         <li>
22             <a href="/cgi-bin/koha/admin/smart-rules.pl">Circulation and fine rules</a>
23         </li>
24         <li>
25             <a href="#" aria-current="page">
26                 Clone circulation and fine rules
27             </a>
28         </li>
29     </ol>
30 </nav>
31
32 <div class="main container-fluid">
33     <div class="row">
34         <div class="col-sm-10 col-sm-push-2">
35             <main>
36
37     <h2>Cloning circulation and fine rules
38         [% IF frombranch %] from "[% Branches.GetName( frombranch ) | html %]"[% END %]
39         [% IF tobranch %] to "[% Branches.GetName( tobranch ) | html %]"[% END %]
40     </h2>
41
42     [% IF ( result ) %]
43         [% IF ( error ) %]
44         <div class="dialog alert">Cloning of circulation and fine rules failed!</div>
45         [% ELSE %]
46             <div class="dialog message"><p>The rules have been cloned.</p></div>
47         [% END %]
48     <a href="/cgi-bin/koha/admin/smart-rules.pl">Return to circulation and fine rules</a>
49     [% ELSE %]
50
51     <p class="help">Use carefully! If the destination library already has circulation and fine rules, they will be deleted without warning!</p>
52     <form action="/cgi-bin/koha/admin/clone-rules.pl" method="post">
53         [% UNLESS ( frombranch ) %]
54             <fieldset>
55                 <legend>Please choose a library to clone rules from:</legend>
56                 <label for="frombranch">Source library:</label>
57                 <select name="frombranch" id="frombranch">
58                     <option value="">Default</option>
59                     [% PROCESS options_for_libraries libraries => Branches.all() %]
60                 </select>
61                 [% IF ( tobranch ) %]<input type="hidden" name="tobranch" value="[% tobranch | html %]" />[% END %]
62             </fieldset>
63         [% END %]
64
65         [% UNLESS ( tobranch ) %]
66             <fieldset>
67             <legend>Please choose the library to clone the rules to:</legend>
68             <label for="tobranch">Destination library:</label>
69             <select name="tobranch" id="tobranch">
70                 <option value="">Default</option>
71                 [% PROCESS options_for_libraries libraries => Branches.all() %]
72             </select>
73             [% IF ( frombranch ) %]<input type="hidden" name="frombranch" value="[% frombranch | html %]" />[% END %]
74             </fieldset>
75         [% END %]
76         <input type="submit" value="Submit" />
77     </form>
78
79     [% END %]
80             </main>
81         </div> <!-- /.col-sm-10.col-sm-push-2 -->
82
83         <div class="col-sm-2 col-sm-pull-10">
84             <aside>
85                 [% INCLUDE 'admin-menu.inc' %]
86             </aside>
87         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
88      </div> <!-- /.row -->
89
90 [% MACRO jsinclude BLOCK %]
91     [% Asset.js("js/admin-menu.js") | $raw %]
92 [% END %]
93
94 [% INCLUDE 'intranet-bottom.inc' %]