Revision 50815b9a
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
templates/design40_webpages/common/_send_email_dialog.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
[% BLOCK attach_file_list %] |
8 | 8 |
[% IF files.as_list.size %] |
9 |
<table class="tbl-horizontal"> |
|
10 |
<tbody> |
|
11 |
[% SET have_files = 1 ; |
|
12 |
FOREACH file = files.as_list %] |
|
13 |
<tr> |
|
14 |
<th>[% IF loop.first %][% label %][% END %]</th> |
|
15 |
<td>[% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]</td> |
|
16 |
</tr> |
|
17 |
[% END %] |
|
18 |
</tbody> |
|
19 |
</table> |
|
9 |
[% SET have_files = 1 ; |
|
10 |
FOREACH file = files.as_list %] |
|
11 |
<tr> |
|
12 |
<th>[% IF loop.first %][% label %][% END %]</th> |
|
13 |
<td>[% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]</td> |
|
14 |
</tr> |
|
15 |
[% END %] |
|
20 | 16 |
[% END %] |
21 | 17 |
[% END %] |
22 | 18 |
|
... | ... | |
34 | 30 |
<span class="interactive cursor-pointer hidden" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[-]</span> |
35 | 31 |
</th> |
36 | 32 |
<td> |
37 |
[% L.input_tag("email_form.to", email_form.to, class="wi-wide", size="50", readonly=is_invoice_mail) %]
|
|
33 |
[% L.input_tag("email_form.to", email_form.to, class="wi-wider", readonly=is_invoice_mail) %]
|
|
38 | 34 |
</td> |
39 | 35 |
</tr> |
36 |
[%- IF ALL_PARTNER_EMAIL_ADDRESSES.size %] |
|
37 |
[%- FOREACH email = ALL_PARTNER_EMAIL_ADDRESSES %] |
|
38 |
<tr class="hidden" data-toggle-recipients="1"> |
|
39 |
<th> |
|
40 |
[%- IF loop.first %] |
|
41 |
[% LxERP.t8("Other recipients") %] |
|
42 |
[%- END %] |
|
43 |
</th> |
|
44 |
<td> |
|
45 |
[% P.checkbox_tag("email_form.additional_to[]", label=email, value=email, checked="0") %] |
|
46 |
</td> |
|
47 |
</tr> |
|
48 |
[%- END %] |
|
49 |
[%- END %] |
|
50 |
[%- IF ALL_EMPLOYEES.size %] |
|
51 |
<tr class="hidden" data-toggle-recipients="1"> |
|
52 |
<th>[% LxERP.t8("CC to Employee") %]</th> |
|
53 |
<td>[% L.select_tag('email_form.cc_employee', ALL_EMPLOYEES, value_key='login' title_key='safe_name', with_empty=1, style=style) %]</td> |
|
54 |
</tr> |
|
55 |
[%- END %] |
|
40 | 56 |
<tr class="hidden" data-toggle-recipients="1"> |
41 | 57 |
<th>[% LxERP.t8("Cc") %]</th> |
42 |
<td>[% L.input_tag("email_form.cc", email_form.cc, class="wi-wide", size="50") %]</td>
|
|
58 |
<td>[% L.input_tag("email_form.cc", email_form.cc, class="wi-wider") %]</td>
|
|
43 | 59 |
</tr> |
44 | 60 |
[% IF show_bcc %] |
45 | 61 |
<tr class="hidden" data-toggle-recipients="1"> |
46 |
<th>[% LxERP.t8("Bcc") %]</th> |
|
47 |
<td>[% L.input_tag("email_form.bcc", email_form.bcc, class="wi-wide", size="50") %]</td>
|
|
62 |
<th>[% LxERP.t8("Bcc") %]</th>
|
|
63 |
<td>[% L.input_tag("email_form.bcc", email_form.bcc, class="wi-wider") %]</td>
|
|
48 | 64 |
</tr> |
49 | 65 |
[% END %] |
50 | 66 |
<tr> |
51 | 67 |
<th>[% LxERP.t8("Subject") %]</th> |
52 |
<td>[% L.input_tag("email_form.subject", email_form.subject, class="wi-wide", size="50") %]</td>
|
|
68 |
<td>[% L.input_tag("email_form.subject", email_form.subject, class="wi-wider") %]</td>
|
|
53 | 69 |
</tr> |
54 | 70 |
<tr> |
55 | 71 |
<th>[% LxERP.t8("Message") %] <sup> [% L.link("generictranslations.pl?action=edit_email_strings", "1)", title=LxERP.t8('Tired of copying always nice phrases for this message? Click here to use the new preset message option!'), target="_blank") %]</sup> </th> |
56 |
<td>[% L.textarea_tag("email_form.message", email_form.message, rows="12" cols="50" wrap="soft", class="wi-wide") %]</td>
|
|
72 |
<td>[% L.textarea_tag("email_form.message", email_form.message, rows="15", class="texteditor texteditor-space-for-toolbar wi-wider") %]</td>
|
|
57 | 73 |
</tr> |
58 | 74 |
[% IF INSTANCE_CONF.get_doc_storage %] |
59 | 75 |
<tr> |
60 |
<th>[% LxERP.t8("Send printout of record") %]</th> |
|
61 |
<td> |
|
62 |
[% SET no_file_label = have_files ? LxERP.t8("Don't include a printout of the record with the email, only selected files") : LxERP.t8("Don't include a printout of the record with the email") ; options = [ [ "normal", LxERP.t8("Create and send a new printout for this record") ], [ "old_file", LxERP.t8("Send the last printout created for this record") ], [ "no_file", no_file_label ], ] ; L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()",class="wi-wide",size="50") %] </td> |
|
63 |
</tr> |
|
76 |
<th>[% LxERP.t8("Send printout of record") %]</th> |
|
77 |
<td> |
|
78 |
[% SET no_file_label = have_files ? LxERP.t8("Don't include a printout of the record with the email, only selected files") : LxERP.t8("Don't include a printout of the record with the email") %] |
|
79 |
[%- IF is_final_version %] |
|
80 |
[% options = [ |
|
81 |
[ "old_file", LxERP.t8("Send the last version for this record") ], |
|
82 |
[ "no_file", no_file_label ], ] |
|
83 |
%] |
|
84 |
[%- ELSE %] |
|
85 |
[% options = [ |
|
86 |
[ "old_file", LxERP.t8("Send the last or create the first version for this record") ], |
|
87 |
[ "normal", LxERP.t8("Create and send a new printout for this record") ], |
|
88 |
[ "no_file", no_file_label ], ] |
|
89 |
%] |
|
90 |
[%- END %] |
|
91 |
[% L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()", class="wi-wider") %] |
|
92 |
</td> |
|
93 |
</tr> |
|
64 | 94 |
[% END %] |
65 | 95 |
<tr> |
66 | 96 |
<th>[% IF !INSTANCE_CONF.get_doc_storage %] [% LxERP.t8("Attachment name") %] [% END %] </th> |
67 |
<td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="50") %]</td>
|
|
97 |
<td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, class="wi-wider") %]</td>
|
|
68 | 98 |
</tr> |
69 | 99 |
[% IF INSTANCE_CONF.get_doc_storage %] |
70 |
[% PROCESS attach_file_list files = FILES.files label = LxERP.t8("Record's files") %] |
|
71 |
[% PROCESS attach_file_list files = FILES.vc_files label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %] |
|
72 |
[% PROCESS attach_file_list files = FILES.part_files label = LxERP.t8("Files from parts") %] |
|
100 |
[% PROCESS attach_file_list |
|
101 |
files = FILES.files |
|
102 |
checked = INSTANCE_CONF.get_email_attachment_record_files_checked |
|
103 |
label = LxERP.t8("Record's files") %] |
|
104 |
[% PROCESS attach_file_list |
|
105 |
files = FILES.vc_files |
|
106 |
checked = INSTANCE_CONF.get_email_attachment_vc_files_checked |
|
107 |
label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %] |
|
108 |
|
|
109 |
[% PROCESS attach_file_list |
|
110 |
files = FILES.part_files |
|
111 |
checked = INSTANCE_CONF.get_email_attachment_part_files_checked |
|
112 |
label = LxERP.t8("Files from parts") %] |
|
113 |
[% PROCESS attach_file_list |
|
114 |
files = FILES.project_files |
|
115 |
label = LxERP.t8("Files from projects") %] |
|
73 | 116 |
[% END %] |
74 | 117 |
</tbody> |
75 | 118 |
</table> |
Auch abrufbar als: Unified diff
design40: E-Mail-Dialog: Template aktualisiert
Funktion:
- weitere Empfänger
- CC an Mitarbeiter
- Nachrichtentext als HTML (Editor)
- geänderte Optionen für finale Version
Aussehen:
- auswählbare Anhänge nicht als Tebelle in Tabelle, sondern als Zeilen
- size-Attribute raus (wird über die Klassen gemacht)