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