Revision db34e1f5
Von Bernd Bleßmann vor etwa 3 Jahren hinzugefügt
templates/webpages/file/upload_dialog.html | ||
---|---|---|
1 | 1 |
[%- USE L -%][%- USE LxERP -%][%- USE JavaScript -%] |
2 | 2 |
|
3 | 3 |
<form method="post" id="upload_form" enctype="multipart/form-data" action="controller.pl"> |
4 |
[% SET multiple = 'true' %]
|
|
5 |
[% IF SELF.object_type == 'shop_image' %][% multiple = 'false' %][% END %]
|
|
4 |
[% SET multiple = 'true' %] |
|
5 |
[% IF SELF.object_type == 'shop_image' %][% multiple = 'false' %][% END %] |
|
6 | 6 |
<table> |
7 | 7 |
<tr> |
8 |
<td>[%- LxERP.t8("Filename") %]:</td><td> |
|
9 |
<input type="file" name="uploadfiles[]" multiple="[% multiple %]" id="upload_files" size="45" accept="[% SELF.accept_types %]" onchange="kivi.File.allow_upload_submit();"></td> |
|
8 |
<td>[%- LxERP.t8("Filename") %]:</td> |
|
9 |
<td> |
|
10 |
<input type="file" name="uploadfiles[]" multiple="[% multiple %]" id="upload_files" size="45" accept="[% SELF.accept_types %]" onchange="kivi.File.allow_upload_submit();"> |
|
11 |
</td> |
|
10 | 12 |
</tr> |
11 | 13 |
[% IF SELF.object_type == 'shop_image' %] |
12 |
<tr>
|
|
13 |
<td>[% LxERP.t8("Title") %]</td>
|
|
14 |
<td>[% L.input_tag("title",'') %]</td>
|
|
15 |
</tr>
|
|
16 |
<tr>
|
|
17 |
<td>[% LxERP.t8("Description") %]</td>
|
|
18 |
<td>[% L.input_tag("description",'') %]</td>
|
|
19 |
</tr>
|
|
14 |
<tr> |
|
15 |
<td>[% LxERP.t8("Title") %]</td> |
|
16 |
<td>[% L.input_tag("title",'') %]</td> |
|
17 |
</tr> |
|
18 |
<tr> |
|
19 |
<td>[% LxERP.t8("Description") %]</td> |
|
20 |
<td>[% L.input_tag("description",'') %]</td> |
|
21 |
</tr> |
|
20 | 22 |
[% END %] |
21 | 23 |
</table> |
22 | 24 |
|
23 | 25 |
<p> |
24 | 26 |
<input value="[%- LxERP.t8("Upload file") %]" id="upload_selected_button" |
25 | 27 |
onclick="kivi.File.upload_selected_files([% SELF.object_id %],'[% SELF.object_type %]','[% SELF.file_type %]',[% SELF.maxsize %],[% SELF.is_global %]);" |
26 |
type="button" disabled >
|
|
28 |
type="button" disabled> |
|
27 | 29 |
<a href="#" onclick="kivi.File.reset_upload_form();">[%- LxERP.t8("Reset") %]</a> |
28 | 30 |
<a href="#" onclick="$('#files_upload').dialog('close');">[% LxERP.t8("Cancel") %]</a> |
29 | 31 |
</p> |
Auch abrufbar als: Unified diff
Kosmetik: Filemanagement Web-Templates: Einrückung