Bug 33189: Make plugin upload look for .kpz files in file picker
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / plugins / plugins-upload.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Upload plugin &rsaquo; Plugins &rsaquo; Tools &rsaquo; Koha </title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 </head>
6
7 <body id="plugins_plugins_upload" class="plugins">
8 [% WRAPPER 'header.inc' %]
9     [% INCLUDE 'circ-search.inc' %]
10 [% END %]
11
12 [% WRAPPER 'sub-header.inc' %]
13 <nav id="breadcrumbs" 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/plugins/plugins-home.pl">Plugins</a>
20         </li>
21         <li>
22             <a href="#" aria-current="page">
23                 Upload plugins
24             </a>
25         </li>
26     </ol>
27 </nav>
28 [% END %]
29
30     <div class="container-fluid">
31         <div class="row">
32             <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
33
34                 <h1>Upload Koha plugin</h1>
35                 [% IF ( ERRORS ) %]
36                 <div class="dialog alert">
37                     [% FOREACH ERROR IN ERRORS %]
38                         [% IF ( ERROR.NOTKPZ ) %]<li><strong>The upload file does not appear to be a kpz file.  The extension is not '.kpz'.</strong></li>
39                         [% ELSIF ( ERROR.NOWRITETEMP ) %]<li><strong>This script is not able to create/write to the necessary temporary directory.</strong></li>
40                         [% ELSIF ( ERROR.EMPTYUPLOAD ) %]<li><strong>The upload file appears to be empty.</strong></li>
41                         [% ELSIF ( ERROR.UZIPFAIL ) %]<li><strong>[% ERROR.UZIPFAIL | html %] failed to unpack.<br />Please verify the integrity of the zip file and retry.</strong></li>
42                         [% ELSIF ( ERROR.NOWRITEPLUGINS ) %]<li><strong>Cannot unpack file to the plugins directory.<br />Please verify that the Apache user can write to the plugins directory.</strong></li>
43                         [% ELSE %]<li><strong>[% ERROR.CORERR | html %] An unknown error has occurred.<br />Please review the error log for more details.</strong></li>[% END %]
44                     [% END %]
45                 </div>
46                 [% END %]
47                 <form method="post" action="/cgi-bin/koha/plugins/plugins-upload.pl" enctype="multipart/form-data">
48                     <fieldset class="brief">
49                          <div class="hint"><strong>NOTE:</strong> Only KPZ file format is supported.</div>
50                         <ol>
51                             <li>
52                                 <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" accept=".kpz" />
53                             </li>
54                         </ol>
55                     </fieldset>
56                     <fieldset class="action">
57                         <input type="hidden" name="op" value="Upload" />
58                         <input type="submit" class="btn btn-primary" value="Upload" />
59                     </fieldset>
60                 </form>
61
62             </div>
63         </div>
64
65 [% INCLUDE 'intranet-bottom.inc' %]