1 [%- USE T8 %][%- USE HTML %][%- USE L %][%- USE LxERP %]
3 <form method="post" id="email_form" method="POST">
4 <h2>[%- 'E-mail' | $T8 %] [%- SELF.type | $T8 %]</h2>
11 <th align="right" nowrap>[% 'To' | $T8 %]</th>
12 <td>[% L.input_tag("email.to", SELF.email.to, size=30, class=(SELF.email.to ? '' : 'initial_focus')) %]</td>
15 <th align="right" nowrap>[% 'Cc' | $T8 %]</th>
16 <td>[% L.input_tag("email.cc", SELF.email.cc, size=30) %]</td>
18 [%- IF AUTH.assert('email_bcc', 1) %]
20 <th align="right" nowrap>[% 'Bcc' | $T8 %]</th>
21 <td>[% L.input_tag("email.bcc", SELF.email.bcc, size=30) %]</td>
25 <th align="right" nowrap>[% 'Subject' | $T8 %]</th>
26 <td>[% L.input_tag('email.subject', SELF.email.subject, size=30, class=(SELF.email.subject ? 'initial_focus' : '')) %]</td>
29 <th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>
30 <td>[% L.input_tag("email.attachment_filename", SELF.email.attachment_filename, size=30) %]</td>
39 <th align="left" nowrap>[% 'Message' | $T8 %]</th>
43 [% L.textarea_tag("email.message", SELF.email.message, wrap="soft", style="width: 350px; height: 150px") %]
51 [% L.hidden_tag('action', 'Order/dispatch') %]
52 [% L.button_tag('send_email()', LxERP.t8('Continue')) %]
53 <a href="#" onclick="close_email_dialog();">[%- LxERP.t8("Cancel") %]</a>
55 <script type='text/javascript'>
56 function send_email() {
57 var data = $('#order_form').serialize();
59 data += $('#email_form').serialize();
60 data += '&action=Order/send_email';
61 $.post("controller.pl", data, kivi.eval_json_result);