Revision 13011246
Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/requirement_spec_text_block/_picture_form.html | ||
---|---|---|
1 |
[%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE JavaScript -%][% USE Base64 %][% SET style="width: 500px" %] |
|
1 |
[% USE LxERP %] |
|
2 |
[% USE L %] |
|
3 |
[% USE HTML %] |
|
4 |
[% USE JavaScript %] |
|
5 |
[% USE Base64 %][% SET style="width: 500px" %] |
|
2 | 6 |
[% SET id_base = 'edit_text_block_picture_' _ (SELF.picture.id ? SELF.picture.id : 'new') %] |
3 | 7 |
<form method="post" id="[% id_base %]_form" method="POST" enctype="multipart/form-data"> |
4 | 8 |
[% L.hidden_tag('form_prefix', id_base, id=id_base _ '_form_prefix') %] |
... | ... | |
7 | 11 |
[% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.text_block.requirement_spec_id) %] |
8 | 12 |
|
9 | 13 |
<h2> |
10 |
[%- IF SELF.picture.id %]
|
|
11 |
[%- LxERP.t8("Edit text block picture #1", SELF.picture.number) %]
|
|
12 |
[%- ELSE %]
|
|
13 |
[%- LxERP.t8("Add picture to text block") %]
|
|
14 |
[%- END %]
|
|
14 |
[% IF SELF.picture.id %] |
|
15 |
[% LxERP.t8("Edit text block picture #1", SELF.picture.number) %] |
|
16 |
[% ELSE %] |
|
17 |
[% LxERP.t8("Add picture to text block") %] |
|
18 |
[% END %] |
|
15 | 19 |
</h2> |
16 | 20 |
|
17 | 21 |
<table> |
18 | 22 |
[% IF SELF.picture.number %] |
19 | 23 |
<tr> |
20 |
<th align="right">[%- LxERP.t8("Number") %]:</th>
|
|
24 |
<th>[% LxERP.t8("Number") %]:</th>
|
|
21 | 25 |
<td>[% HTML.escape(SELF.picture.number) %]</td> |
22 | 26 |
</tr> |
23 | 27 |
[% END %] |
24 | 28 |
|
25 | 29 |
<tr> |
26 |
<th align="right">[%- LxERP.t8("Description") %]:</th>
|
|
30 |
<th>[% LxERP.t8("Description") %]:</th>
|
|
27 | 31 |
<td>[% L.input_tag(id_base _ '.description', SELF.picture.description, style=style) %]</td> |
28 | 32 |
</tr> |
29 | 33 |
|
30 | 34 |
[% IF SELF.picture.picture_content %] |
31 | 35 |
<tr> |
32 |
<th align="right">[%- LxERP.t8("File name") %]:</th>
|
|
36 |
<th>[% LxERP.t8("File name") %]:</th>
|
|
33 | 37 |
<td>[% HTML.escape(SELF.picture.picture_file_name) %]</td> |
34 | 38 |
</tr> |
35 | 39 |
|
36 | 40 |
<tr> |
37 |
<th align="right">[%- LxERP.t8("MIME type") %]:</th>
|
|
41 |
<th>[% LxERP.t8("MIME type") %]:</th>
|
|
38 | 42 |
<td>[% HTML.escape(SELF.picture.picture_content_type) %]</td> |
39 | 43 |
</tr> |
40 | 44 |
|
41 | 45 |
<tr> |
42 |
<th align="right">[%- LxERP.t8("Dimensions") %]:</th>
|
|
46 |
<th>[% LxERP.t8("Dimensions") %]:</th>
|
|
43 | 47 |
<td>[% HTML.escape(SELF.picture.picture_width) %]x[% HTML.escape(SELF.picture.picture_height) %]</td> |
44 | 48 |
</tr> |
45 | 49 |
|
46 | 50 |
<tr> |
47 |
<th align="right">[%- LxERP.t8("Uploaded at") %]:</th>
|
|
51 |
<th>[% LxERP.t8("Uploaded at") %]:</th>
|
|
48 | 52 |
<td>[% HTML.escape(SELF.picture.picture_mtime.to_kivitendo(precision='second')) %]</td> |
49 | 53 |
</tr> |
50 | 54 |
[% END %] |
51 | 55 |
|
52 | 56 |
<tr> |
53 |
<th align="right">[%- LxERP.t8("Select file to upload") %]:</th>
|
|
57 |
<th>[% LxERP.t8("Select file to upload") %]:</th>
|
|
54 | 58 |
<td>[% L.input_tag(id_base _ '.picture_content', '', type='file') %]</td> |
55 | 59 |
</tr> |
56 | 60 |
</table> |
57 | 61 |
|
58 | 62 |
<p> |
59 |
[%- L.ajax_submit_tag('controller.pl?action=RequirementSpecTextBlock/ajax_' _ (SELF.picture.id ? 'update' : 'create') _ '_picture', '#' _ id_base _ '_form', LxERP.t8('Save'), no_id=1) %]
|
|
60 |
<a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[%- LxERP.t8("Cancel") %]</a>
|
|
63 |
[% L.ajax_submit_tag('controller.pl?action=RequirementSpecTextBlock/ajax_' _ (SELF.picture.id ? 'update' : 'create') _ '_picture', '#' _ id_base _ '_form', LxERP.t8('Save'), no_id=1) %] |
|
64 |
<a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[% LxERP.t8("Cancel") %]</a> |
|
61 | 65 |
</p> |
62 | 66 |
|
63 | 67 |
</form> |
Auch abrufbar als: Unified diff
Neues kivitendo Design restliche Aenderungen in templates/webpages/requirement_spec_*
Dateien requirement_spec_item/* requirement_spec_order/* requirement_spec_part/*
requirement_spec_text_block/* requirement_spec_version/*