projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lagerbestandsbericht um Anzeige von IC Cvars erweitert
[kivitendo-erp.git]
/
templates
/
webpages
/
file
/
upload_dialog.html
diff --git
a/templates/webpages/file/upload_dialog.html
b/templates/webpages/file/upload_dialog.html
index
eceb6b1
..
6dde5a3
100644
(file)
--- a/
templates/webpages/file/upload_dialog.html
+++ b/
templates/webpages/file/upload_dialog.html
@@
-1,17
+1,31
@@
-[%- USE L -%][%- USE LxERP -%]
[%- USE JavaScript -%]
+[%- USE L -%][%- USE LxERP -%]
<form method="post" id="upload_form" enctype="multipart/form-data" action="controller.pl">
<form method="post" id="upload_form" enctype="multipart/form-data" action="controller.pl">
+ [% SET multiple = 'true' %]
+ [% IF SELF.object_type == 'shop_image' %][% multiple = 'false' %][% END %]
<table>
<tr>
<table>
<tr>
- <td>[%- LxERP.t8("Filename") %]:</td><td>
- <input type="file" name="uploadfiles[]" multiple="true" id="upload_files" size="45" accept="[% SELF.accept_types %]" onchange="kivi.File.allow_upload_submit();"></td>
+ <td>[%- LxERP.t8("Filename") %]:</td>
+ <td>
+ <input type="file" name="uploadfiles[]" multiple="[% multiple %]" id="upload_files" size="45" accept="[% SELF.accept_types %]" onchange="kivi.File.allow_upload_submit();">
+ </td>
</tr>
</tr>
+ [% IF SELF.object_type == 'shop_image' %]
+ <tr>
+ <td>[% LxERP.t8("Title") %]</td>
+ <td>[% L.input_tag("title",'') %]</td>
+ </tr>
+ <tr>
+ <td>[% LxERP.t8("Description") %]</td>
+ <td>[% L.input_tag("description",'') %]</td>
+ </tr>
+ [% END %]
</table>
<p>
<input value="[%- LxERP.t8("Upload file") %]" id="upload_selected_button"
onclick="kivi.File.upload_selected_files([% SELF.object_id %],'[% SELF.object_type %]','[% SELF.file_type %]',[% SELF.maxsize %],[% SELF.is_global %]);"
</table>
<p>
<input value="[%- LxERP.t8("Upload file") %]" id="upload_selected_button"
onclick="kivi.File.upload_selected_files([% SELF.object_id %],'[% SELF.object_type %]','[% SELF.file_type %]',[% SELF.maxsize %],[% SELF.is_global %]);"
- type="button" disabled
>
+ type="button" disabled>
<a href="#" onclick="kivi.File.reset_upload_form();">[%- LxERP.t8("Reset") %]</a>
<a href="#" onclick="$('#files_upload').dialog('close');">[% LxERP.t8("Cancel") %]</a>
</p>
<a href="#" onclick="kivi.File.reset_upload_form();">[%- LxERP.t8("Reset") %]</a>
<a href="#" onclick="$('#files_upload').dialog('close');">[% LxERP.t8("Cancel") %]</a>
</p>