Bug 20739: Update two-column templates with Bootstrap grid, Administration part 3
[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 class="main container-fluid">
16     <div class="row">
17         <div class="col-sm-10 col-sm-push-2">
18             <main>
19
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             </main>
64         </div> <!-- /.col-sm-10.col-sm-push-2 -->
65
66         <div class="col-sm-2 col-sm-pull-10">
67             <aside>
68                 [% INCLUDE 'admin-menu.inc' %]
69             </aside>
70         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
71      </div> <!-- /.row -->
72
73 [% MACRO jsinclude BLOCK %]
74     [% Asset.js("js/admin-menu.js") | $raw %]
75 [% END %]
76
77 [% INCLUDE 'intranet-bottom.inc' %]