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>
 
  41           <th align="left" nowrap>[% 'Message' | $T8 %]</th>
 
  44           <td><textarea name="message" id="message" rows="15" cols="60" wrap="soft">[% HTML.escape(message) %]</textarea></td>
 
  54 [% FOREACH row = HIDDEN %]<input type="hidden" name="[% row.name %]" value="[% HTML.escape(row.value) %]">
 
  61     <td><hr size="3" noshade></td>
 
  65 <input type="hidden" name="nextsub" value="send_email">
 
  68 [% L.submit_tag('action', LxERP.t8('Continue'), onclick="return check_prerequisites();") %]
 
  71 <script type="text/javascript">
 
  73 function check_prerequisites() {
 
  74   if (!$('#email,#subject,#message').filter(function(idx, elt) { return $(elt).val() === ""; }).size())
 
  77   alert(kivi.t8('The recipient, subject or body is missing.'));