Revision fb5d35e7
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/requirement_spec_text_block/_picture_form.html | ||
---|---|---|
11 | 11 |
[% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.text_block.requirement_spec_id) %] |
12 | 12 |
|
13 | 13 |
<h2> |
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 %]
|
|
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 %] |
|
19 | 19 |
</h2> |
20 | 20 |
|
21 | 21 |
<table> |
22 | 22 |
[% IF SELF.picture.number %] |
23 | 23 |
<tr> |
24 |
<th align="right">[%- LxERP.t8("Number") %]:</th>
|
|
24 |
<th>[% LxERP.t8("Number") %]:</th>
|
|
25 | 25 |
<td>[% HTML.escape(SELF.picture.number) %]</td> |
26 | 26 |
</tr> |
27 | 27 |
[% END %] |
28 | 28 |
|
29 | 29 |
<tr> |
30 |
<th align="right">[%- LxERP.t8("Description") %]:</th>
|
|
30 |
<th>[% LxERP.t8("Description") %]:</th>
|
|
31 | 31 |
<td>[% L.input_tag(id_base _ '.description', SELF.picture.description, style=style) %]</td> |
32 | 32 |
</tr> |
33 | 33 |
|
34 | 34 |
[% IF SELF.picture.picture_content %] |
35 | 35 |
<tr> |
36 |
<th align="right">[%- LxERP.t8("File name") %]:</th>
|
|
36 |
<th>[% LxERP.t8("File name") %]:</th>
|
|
37 | 37 |
<td>[% HTML.escape(SELF.picture.picture_file_name) %]</td> |
38 | 38 |
</tr> |
39 | 39 |
|
40 | 40 |
<tr> |
41 |
<th align="right">[%- LxERP.t8("MIME type") %]:</th>
|
|
41 |
<th>[% LxERP.t8("MIME type") %]:</th>
|
|
42 | 42 |
<td>[% HTML.escape(SELF.picture.picture_content_type) %]</td> |
43 | 43 |
</tr> |
44 | 44 |
|
45 | 45 |
<tr> |
46 |
<th align="right">[%- LxERP.t8("Dimensions") %]:</th>
|
|
46 |
<th>[% LxERP.t8("Dimensions") %]:</th>
|
|
47 | 47 |
<td>[% HTML.escape(SELF.picture.picture_width) %]x[% HTML.escape(SELF.picture.picture_height) %]</td> |
48 | 48 |
</tr> |
49 | 49 |
|
50 | 50 |
<tr> |
51 |
<th align="right">[%- LxERP.t8("Uploaded at") %]:</th>
|
|
51 |
<th>[% LxERP.t8("Uploaded at") %]:</th>
|
|
52 | 52 |
<td>[% HTML.escape(SELF.picture.picture_mtime.to_kivitendo(precision='second')) %]</td> |
53 | 53 |
</tr> |
54 | 54 |
[% END %] |
55 | 55 |
|
56 | 56 |
<tr> |
57 |
<th align="right">[%- LxERP.t8("Select file to upload") %]:</th>
|
|
57 |
<th>[% LxERP.t8("Select file to upload") %]:</th>
|
|
58 | 58 |
<td>[% L.input_tag(id_base _ '.picture_content', '', type='file') %]</td> |
59 | 59 |
</tr> |
60 | 60 |
</table> |
61 | 61 |
|
62 | 62 |
<p> |
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>
|
|
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> |
|
65 | 65 |
</p> |
66 | 66 |
|
67 | 67 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/requirement_spec_text_block/_picture_form.html