Bug 8387: Hide headings in tools when user has no permissions for any listed below
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / batchMod.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Tools &rsaquo; [% IF ( del ) %]Batch item deletion[% ELSE %]Batch item modification[% END %] </title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8 <body id="tools_batchMod" class="tools">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
11
12 <div id="breadcrumbs">
13     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
14     <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
15     [% IF ( del ) %]
16     <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Batch item deletion</a>
17     [% ELSE %]
18     <a href="/cgi-bin/koha/tools/batchMod.pl">Batch item modification</a>
19     [% END %]
20 </div>
21
22 <div class="main container-fluid">
23     <div class="row">
24         <div class="col-sm-10 col-sm-push-2">
25             <main>
26
27                 <h1>Batch item [% IF ( del ) %]deletion[% ELSE %]modification[% END %]</h1>
28                         <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batchMod.pl">
29                             <fieldset class="rows">
30                                 <legend>Use a file</legend>
31                                   <ol>
32                       <li>
33                     <label for="barcode_file">Barcode file: </label><input type="radio" name="filecontent" value="barcode_file" id="barcode_file" checked="checked" /></li>
34                     <li>
35                     <label for="itemid_file">Item number file: </label><input type="radio" name="filecontent" value="itemid_file" id="itemid_file" />
36                       </li>
37                                     <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
38                                 </ol>
39                             </fieldset>
40                             <fieldset class="rows">
41                                 <legend>Or scan items one by one</legend>
42                                 <ol>
43                                     <li>
44                                       <label for="barcodelist">Barcode list (one barcode per line): </label>
45                                       <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea>
46                                     </li>
47                                 </ol>
48                             </fieldset>
49                             <input type="hidden" name="op" value="show" />
50
51                             [% UNLESS del %]
52                                 <fieldset class="rows">
53                                     <legend>Use default values</legend>
54                                     <ol class="radio">
55                                         <li>
56                                             <label>
57                                                 <input type="checkbox" name="use_default_values" id="use_default_values" />
58                                                 Populate fields with default values from default framework
59                                             </label>
60                                         </li>
61                                     </ol>
62                                 </fieldset>
63                             [% END %]
64
65                             [% IF ( del ) %]<input type="hidden" name="del" value="1" />[% END %]
66                             <fieldset class="action">
67                                 <input type="submit" value="Continue" class="button" />
68                 <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
69                             </fieldset>
70
71                         </form>
72
73             </main>
74         </div> <!-- /.col-sm-10.col-sm-push-2 -->
75
76         <div class="col-sm-2 col-sm-pull-10">
77             <aside>
78                 [% INCLUDE 'tools-menu.inc' %]
79             </aside>
80         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
81      </div> <!-- /.row -->
82
83 [% MACRO jsinclude BLOCK %]
84     [% Asset.js("js/tools-menu.js") | $raw %]
85 [% END %]
86
87 [% INCLUDE 'intranet-bottom.inc' %]