Bug 35241: Fix markup errors in point of sale template
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / plugins / plugins-upload.tt
1 [% USE raw %]
2 [% PROCESS 'i18n.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% FILTER collapse %]
5     [% t("Upload plugin") | html %] &rsaquo;
6     [% t("Plugins") | html %] &rsaquo;
7     [% t("Koha") | html %]
8 [% END %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% INCLUDE 'calendar.inc' %]
11 </head>
12
13 <body id="plugins_plugins_upload" class="plugins">
14 [% WRAPPER 'header.inc' %]
15     [% INCLUDE 'circ-search.inc' %]
16 [% END %]
17
18     [% WRAPPER 'sub-header.inc' %]
19         [% WRAPPER breadcrumbs %]
20             [% WRAPPER breadcrumb_item %]
21                 <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a>
22             [% END %]
23             [% WRAPPER breadcrumb_item bc_active= 1 %]
24                 <span>Upload plugin</span>
25             [% END %]
26         [% END #/ WRAPPER breadcrumbs %]
27     [% END #/ WRAPPER sub-header.inc %]
28
29     <div class="container-fluid">
30         <div class="row">
31             <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
32
33                 <h1>Upload plugin</h1>
34                 [% IF ( ERRORS ) %]
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 %]
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' %]