Auftrags-Controller: E-Mail-Funktion
[kivitendo-erp.git] / templates / webpages / order / tabs / _email_dialog.html
1 [%- USE T8 %][%- USE HTML %][%- USE L %][%- USE LxERP %]
2
3 <form method="post" id="email_form" method="POST">
4 <h2>[%- 'E-mail' | $T8 %]&nbsp;[%- SELF.type | $T8 %]</h2>
5
6 <table width="100%">
7   <tr>
8     <td>
9       <table>
10         <tr  align="left">
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>
13         </tr>
14         <tr>
15           <th align="right" nowrap>[% 'Cc' | $T8 %]</th>
16           <td>[% L.input_tag("email.cc", SELF.email.cc, size=30) %]</td>
17         </tr>
18         [%- IF AUTH.assert('email_bcc', 1) %]
19         <tr>
20           <th align="right" nowrap>[% 'Bcc' | $T8 %]</th>
21           <td>[% L.input_tag("email.bcc", SELF.email.bcc, size=30) %]</td>
22         </tr>
23         [%- END %]
24         <tr>
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>
27         </tr>
28         <tr>
29           <th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>
30           <td>[% L.input_tag("email.attachment_filename", SELF.email.attachment_filename, size=30) %]</td>
31         </tr>
32       </table>
33     </td>
34   </tr>
35
36   <tr>
37     <table>
38       <tr>
39         <th align="left" nowrap>[% 'Message' | $T8 %]</th>
40       </tr>
41       <tr>
42         <td>
43           [% L.textarea_tag("email.message", SELF.email.message, wrap="soft", style="width: 350px; height: 150px") %]
44         </td>
45       </tr>
46   </tr>
47
48 </table>
49
50 <br>
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>
54
55 <script type='text/javascript'>
56 function send_email() {
57   var data = $('#order_form').serialize();
58   data += '&';
59   data += $('#email_form').serialize();
60   data += '&action=Order/send_email';
61   $.post("controller.pl", data, kivi.eval_json_result);
62 }
63 </script>
64
65 </form>