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