Revision 5781315d
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/generictranslations.pl | ||
---|---|---|
1 | 1 |
use SL::Auth; |
2 | 2 |
use SL::Form; |
3 | 3 |
use SL::GenericTranslations; |
4 |
use SL::Locale::String qw(t8); |
|
4 | 5 |
|
5 | 6 |
use strict; |
6 | 7 |
|
... | ... | |
34 | 35 |
} |
35 | 36 |
} |
36 | 37 |
|
38 |
setup_generictranslations_edit_greetings_action_bar(); |
|
39 |
|
|
37 | 40 |
$form->{title} = $locale->text('Edit greetings'); |
38 | 41 |
$form->header(); |
39 | 42 |
print $form->parse_html_template('generictranslations/edit_greetings'); |
... | ... | |
131 | 134 |
$main::lxdebug->leave_sub(); |
132 | 135 |
} |
133 | 136 |
|
137 |
sub setup_generictranslations_edit_greetings_action_bar { |
|
138 |
my %params = @_; |
|
139 |
|
|
140 |
for my $bar ($::request->layout->get('actionbar')) { |
|
141 |
$bar->add( |
|
142 |
action => [ |
|
143 |
t8('Save'), |
|
144 |
submit => [ '#form', { action => "save_greetings" } ], |
|
145 |
accesskey => 'enter', |
|
146 |
], |
|
147 |
); |
|
148 |
} |
|
149 |
} |
|
150 |
|
|
134 | 151 |
1; |
templates/webpages/generictranslations/edit_greetings.html | ||
---|---|---|
8 | 8 |
</p> |
9 | 9 |
[%- END %] |
10 | 10 |
|
11 |
<form method="post" action="generictranslations.pl"> |
|
11 |
<form method="post" action="generictranslations.pl" id="form">
|
|
12 | 12 |
|
13 | 13 |
<table> |
14 | 14 |
|
... | ... | |
33 | 33 |
[%- END %] |
34 | 34 |
|
35 | 35 |
</table> |
36 |
|
|
37 |
<p> |
|
38 |
<input type="hidden" name="action" value="save_greetings"> |
|
39 |
<input type="submit" class="submit" value="[% 'Save' | $T8 %]"> |
|
40 |
</p> |
|
41 |
|
|
42 | 36 |
</form> |
43 |
|
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei »System« → »Sprachen und Übersetzungen« → »Anreden«