2 [%- USE HTML %][%- USE LxERP -%][%- USE L -%]
5 <form name="Form" method="post" action="[% script %]">
12 <th align="right" nowrap>[% 'To' | $T8 %]</th>
14 <td>[% L.input_tag('email', email, size=30, class=(email ? '' : 'initial_focus')) %]</td>
17 <th align="right" nowrap>[% 'Cc' | $T8 %]</th>
18 <td><input name="cc" size="30" value="[% HTML.escape(cc) %]"></td>
22 <th align="right" nowrap>[% 'Bcc' | $T8 %]</th>
23 <td><input name="bcc" size="30" value="[% HTML.escape(bcc) %]"></td>
27 <th align="right" nowrap>[% 'Subject' | $T8 %]</th>
28 <td>[% L.input_tag('subject', subject, size=30, class=(email ? 'initial_focus' : '')) %]</td>
31 <th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>
32 <td><input name="attachment_filename" size="30" value="[% HTML.escape(a_filename) %]"></td>
42 <th align="left" nowrap>[% 'Message' | $T8 %]</th>
45 <td><textarea name="message" id="message" rows="15" cols="60" wrap="soft">[% HTML.escape(message) %]</textarea></td>
55 [% FOREACH row = HIDDEN %]<input type="hidden" name="[% row.name %]" value="[% HTML.escape(row.value) %]">
62 <td><hr size="3" noshade></td>
66 <input type="hidden" name="nextsub" value="send_email">
69 [% L.submit_tag('action', LxERP.t8('Continue'), onclick="return check_prerequisites();") %]
72 <script type="text/javascript">
74 function check_prerequisites() {
75 if (!$('#email,#subject,#message').filter(function(idx, elt) { return $(elt).val() === ""; }).size())
78 alert(kivi.t8('The recipient, subject or body is missing.'));