use SL::Auth;
use SL::Form;
use SL::GenericTranslations;
+use SL::Locale::String qw(t8);
use strict;
}
}
+ setup_generictranslations_edit_greetings_action_bar();
+
$form->{title} = $locale->text('Edit greetings');
$form->header();
print $form->parse_html_template('generictranslations/edit_greetings');
$main::lxdebug->leave_sub();
}
+sub setup_generictranslations_edit_greetings_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Save'),
+ submit => [ '#form', { action => "save_greetings" } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
1;
</p>
[%- END %]
- <form method="post" action="generictranslations.pl">
+ <form method="post" action="generictranslations.pl" id="form">
<table>
[%- END %]
</table>
-
- <p>
- <input type="hidden" name="action" value="save_greetings">
- <input type="submit" class="submit" value="[% 'Save' | $T8 %]">
- </p>
-
</form>
-