Revision 3ed7d9a6
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/file/upload_dialog.html | ||
---|---|---|
1 |
[%- USE L -%][%- USE LxERP -%][%- USE JavaScript -%] |
|
1 |
[% USE L %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE JavaScript %] |
|
2 | 4 |
|
3 | 5 |
<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 %] |
|
6 |
<table> |
|
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> |
|
10 |
</tr> |
|
11 |
[% IF SELF.object_type == 'shop_image' %] |
|
6 |
[% SET multiple = 'true' %] |
|
7 |
[% IF SELF.object_type == 'shop_image' %][% multiple = 'false' %][% END %] |
|
8 |
|
|
9 |
|
|
10 |
<table class="tbl-horizontal"> |
|
11 |
<tbody> |
|
12 | 12 |
<tr> |
13 |
<td>[% LxERP.t8("Title") %]</td> |
|
13 |
<th>[% LxERP.t8("Filename") %]:</th> |
|
14 |
<td><input type="file" name="uploadfiles[]" multiple="[% multiple %]" id="upload_files" size="45" accept="[% SELF.accept_types %]" onchange="kivi.File.allow_upload_submit();"></td> |
|
15 |
</tr> |
|
16 |
[% IF SELF.object_type == 'shop_image' %] |
|
17 |
<tr> |
|
18 |
<th>[% LxERP.t8("Title") %]</th> |
|
14 | 19 |
<td>[% L.input_tag("title",'') %]</td> |
15 | 20 |
</tr> |
16 | 21 |
<tr> |
17 |
<td>[% LxERP.t8("Description") %]</td>
|
|
22 |
<th>[% LxERP.t8("Description") %]</th>
|
|
18 | 23 |
<td>[% L.input_tag("description",'') %]</td> |
19 | 24 |
</tr> |
20 |
[% END %] |
|
21 |
</table> |
|
22 |
|
|
23 |
<p> |
|
24 |
<input value="[%- LxERP.t8("Upload file") %]" id="upload_selected_button" |
|
25 |
onclick="kivi.File.upload_selected_files([% SELF.object_id %],'[% SELF.object_type %]','[% SELF.file_type %]',[% SELF.maxsize %],[% SELF.is_global %]);" |
|
26 |
type="button" disabled > |
|
27 |
<a href="#" onclick="kivi.File.reset_upload_form();">[%- LxERP.t8("Reset") %]</a> |
|
28 |
<a href="#" onclick="$('#files_upload').dialog('close');">[% LxERP.t8("Cancel") %]</a> |
|
29 |
</p> |
|
25 |
[% END %] |
|
26 |
</tbody> |
|
27 |
</table> |
|
30 | 28 |
|
31 |
<hr> |
|
29 |
<div class="buttons"> |
|
30 |
<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 > |
|
31 |
<a href="#" onclick="kivi.File.reset_upload_form();" class="button neutral">[% LxERP.t8("Reset") %]</a> |
|
32 |
<a href="#" onclick="$('#files_upload').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a> |
|
33 |
</div> |
|
32 | 34 |
|
33 |
<div id="upload_result"><p> </p></div>
|
|
35 |
<div id="upload_result"><p></p></div>
|
|
34 | 36 |
|
35 | 37 |
</form> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/f*
Dateien in file/* financial_controlling_report/* financial_overview/*
fu/*