Layout: title Ausgabe normalisieren
[kivitendo-erp.git] / templates / webpages / generic / edit_email.html
1 [%- USE T8 %]
2 [%- USE HTML %][%- USE LxERP -%][%- USE L -%]
3 <h1>[% title %]</h1>
4
5 <form name="Form" method="post" action="[% script %]">
6
7 <table width="100%">
8   <tr>
9     <td>
10       <table>
11         <tr>
12           <th align="right" nowrap>[% 'To' | $T8 %]</th>
13
14           <td>[% L.input_tag('email', email, size=30, class=(email ? '' : 'initial_focus')) %]</td>
15         </tr>
16         <tr>
17           <th align="right" nowrap>[% 'Cc' | $T8 %]</th>
18           <td><input name="cc" size="30" value="[% HTML.escape(cc) %]"></td>
19         </tr>
20 [%- IF SHOW_BCC %]
21         <tr>
22           <th align="right" nowrap>[% 'Bcc' | $T8 %]</th>
23           <td><input name="bcc" size="30" value="[% HTML.escape(bcc) %]"></td>
24         </tr>
25 [%- END %]
26         <tr>
27           <th align="right" nowrap>[% 'Subject' | $T8 %]</th>
28           <td>[% L.input_tag('subject', subject, size=30, class=(email ? 'initial_focus' : '')) %]</td>
29         </tr>
30         <tr>
31           <th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>
32           <td><input name="attachment_filename" size="30" value="[% HTML.escape(a_filename) %]"></td>
33       </table>
34     </td>
35   </tr>
36
37   <tr>
38     <td>
39       <table>
40         <tr>
41           <th align="left" nowrap>[% 'Message' | $T8 %]</th>
42         </tr>
43         <tr>
44           <td><textarea name="message" id="message" rows="15" cols="60" wrap="soft">[% HTML.escape(message) %]</textarea></td>
45
46         </tr>
47       </table>
48     </td>
49   </tr>
50   <tr>
51     <td>
52
53 [% print_options %]
54 [% FOREACH row = HIDDEN %]<input type="hidden" name="[% row.name %]" value="[% HTML.escape(row.value) %]">
55 [% END %]
56
57     </td>
58   </tr>
59
60   <tr>
61     <td><hr size="3" noshade></td>
62   </tr>
63 </table>
64
65 <input type="hidden" name="nextsub" value="send_email">
66
67 <br>
68 [% L.submit_tag('action', LxERP.t8('Continue'), onclick="return check_prerequisites();") %]
69 </form>
70
71 <script type="text/javascript">
72 <!--
73 function check_prerequisites() {
74   if (!$('#email,#subject,#message').filter(function(idx, elt) { return $(elt).val() === ""; }).size())
75     return true;
76
77   alert(kivi.t8('The recipient, subject or body is missing.'));
78   return false;
79 }
80 -->
81 </script>