Revision 5781315d
Von Moritz Bunkus vor etwa 8 Jahren hinzugefügt
bin/mozilla/generictranslations.pl | ||
---|---|---|
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;
|
templates/webpages/generictranslations/edit_greetings.html | ||
---|---|---|
</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>
|
||
|
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei »System« → »Sprachen und Übersetzungen« → »Anreden«