- return shift->{'login_form'} || q {
- <div class="login_chunk">
- <span class="login_error">[% error %]</span>
- <form class="login_form" name="[% form_name %]" method="POST" action="[% script_name %][% path_info %]">
- <input type="hidden" name="[% key_redirect %]" value="">
- <input type="hidden" name="[% key_time %]" value="">
- <input type="hidden" name="[% key_expires_min %]" value="">
- <table class="login_table">
- <tr class="login_username">
- <td>[% text_user %]</td>
- <td><input name="[% key_user %]" type="text" size="30" value=""></td>
- </tr>
- <tr class="login_password">
- <td>[% text_pass %]</td>
- <td><input name="[% key_pass %]" type="password" size="30" value=""></td>
- </tr>
- [% IF ! hide_save ~%]
- <tr class="login_save">
- <td colspan="2">
- <input type="checkbox" name="[% key_save %]" value="1"> [% text_save %]
- </td>
- </tr>
- [%~ END %]
- <tr class="login_submit">
- <td colspan="2" align="right">
- <input type="submit" value="[% text_submit %]">
- </td>
- </tr>
- </table>
- </form>
- </div>
+ my $self = shift;
+ return $self->{'login_form'} if defined $self->{'login_form'};
+ return \q{<div class="login_chunk">
+<span class="login_error">[% error %]</span>
+<form class="login_form" name="[% form_name %]" method="POST" action="[% script_name %][% path_info %]">
+<input type="hidden" name="[% key_redirect %]" value="">
+<input type="hidden" name="[% key_time %]" value="">
+<input type="hidden" name="[% key_expires_min %]" value="">
+<table class="login_table">
+<tr class="login_username">
+ <td>[% text_user %]</td>
+ <td><input name="[% key_user %]" type="text" size="30" value=""></td>
+</tr>
+<tr class="login_password">
+ <td>[% text_pass %]</td>
+ <td><input name="[% key_pass %]" type="password" size="30" value=""></td>
+</tr>
+[% IF ! hide_save ~%]
+<tr class="login_save">
+ <td colspan="2">
+ <input type="checkbox" name="[% key_save %]" value="1"> [% text_save %]
+ </td>
+</tr>
+[%~ END %]
+<tr class="login_submit">
+ <td colspan="2" align="right">
+ <input type="submit" value="[% text_submit %]">
+ </td>
+</tr>
+</table>
+</form>
+</div>