use SL::User;
use SL::USTVA;
use SL::Iconv;
+use SL::Locale::String qw(t8);
use SL::TODO;
use SL::DB::Printer;
use SL::DB::Tax;
$form->{title} = $locale->text('Edit Preferences for #1', $::myconfig{login});
+ setup_am_config_action_bar();
+
$form->header();
$form->{full_signature} = $form->create_email_signature();
$main::lxdebug->leave_sub();
}
+
+sub setup_am_config_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Save'),
+ submit => [ '#form', { action => "save_preferences" } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
[%- USE HTML %][%- USE L %]
<h1>[% title %]</h1>
- <form method="post" action="am.pl" name="Form">
- <input type="hidden" name="type" value="preferences">
-
+ <form method="post" action="am.pl" name="Form" id="form">
<div class="tabwidget">
<ul>
<li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
</table>
</div>
</div>
-
- <p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
</form>
<script type="text/javascript">