my $attachment_filename = $form->generate_attachment_filename();
my $subject = $form->{subject} || $form->generate_email_subject();
- $form->{"fokus"} = $form->{"email"} ? "Form.subject" : "Form.email";
+ $::request->{layout}->focus($form->{"email"} ? "#subject" : "#email");
$form->header;
my (@dont_hide_key_list, %dont_hide_key, @hidden_keys);
<tr>
<th align="right" nowrap>[% 'To' | $T8 %]</th>
- <td><input name="email" size="30" value="[% HTML.escape(email) %]"></td>
+ <td><input id="email" name="email" size="30" value="[% HTML.escape(email) %]"></td>
</tr>
<tr>
<th align="right" nowrap>[% 'Cc' | $T8 %]</th>
<tr>
<th align="right" nowrap>[% 'Subject' | $T8 %]</th>
- <td><input name="subject" size="30" value="[% HTML.escape(subject) %]"></td>
+ <td><input id="subject" name="subject" size="30" value="[% HTML.escape(subject) %]"></td>
</tr>
<tr>
<th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>