2 [% PROCESS 'i18n.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% FILTER collapse %]
5 [% t("Upload plugin") | html %] ›
6 [% t("Plugins") | html %] ›
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% INCLUDE 'calendar.inc' %]
13 <body id="plugins_plugins_upload" class="plugins">
14 [% WRAPPER 'header.inc' %]
15 [% INCLUDE 'circ-search.inc' %]
18 [% WRAPPER 'sub-header.inc' %]
19 [% WRAPPER breadcrumbs %]
20 [% WRAPPER breadcrumb_item %]
21 <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a>
23 [% WRAPPER breadcrumb_item bc_active= 1 %]
24 <span>Upload plugin</span>
26 [% END #/ WRAPPER breadcrumbs %]
27 [% END #/ WRAPPER sub-header.inc %]
29 <div class="container-fluid">
31 <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
33 <h1>Upload plugin</h1>
35 <div class="dialog alert">
36 [% FOREACH ERROR IN ERRORS %]
37 [% IF ( ERROR.NOTKPZ ) %]<li><strong>The upload file does not appear to be a kpz file. The extension is not '.kpz'.</strong></li>
38 [% ELSIF ( ERROR.NOWRITETEMP ) %]<li><strong>This script is not able to create/write to the necessary temporary directory.</strong></li>
39 [% ELSIF ( ERROR.EMPTYUPLOAD ) %]<li><strong>The upload file appears to be empty.</strong></li>
40 [% ELSIF ( ERROR.UZIPFAIL ) %]<li><strong>[% ERROR.UZIPFAIL | html %] failed to unpack.<br />Please verify the integrity of the zip file and retry.</strong></li>
41 [% 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>
42 [% ELSIF ( ERROR.RESTRICTED ) %]<li><strong>Cannot install plugin from unknown source whilst plugins_restricted is enabled.<br /></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 %]
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>
52 <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" accept=".kpz" />
56 <fieldset class="action">
57 <input type="hidden" name="op" value="Upload" />
58 <input type="submit" class="btn btn-primary" value="Upload" />
65 [% INCLUDE 'intranet-bottom.inc' %]