Revision 8651e027
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
42 | 42 |
use SL::User; |
43 | 43 |
use SL::USTVA; |
44 | 44 |
use SL::Iconv; |
45 |
use SL::Locale::String qw(t8); |
|
45 | 46 |
use SL::TODO; |
46 | 47 |
use SL::DB::Printer; |
47 | 48 |
use SL::DB::Tax; |
... | ... | |
713 | 714 |
|
714 | 715 |
$form->{title} = $locale->text('Edit Preferences for #1', $::myconfig{login}); |
715 | 716 |
|
717 |
setup_am_config_action_bar(); |
|
718 |
|
|
716 | 719 |
$form->header(); |
717 | 720 |
|
718 | 721 |
$form->{full_signature} = $form->create_email_signature(); |
... | ... | |
1377 | 1380 |
|
1378 | 1381 |
$main::lxdebug->leave_sub(); |
1379 | 1382 |
} |
1383 |
|
|
1384 |
sub setup_am_config_action_bar { |
|
1385 |
my %params = @_; |
|
1386 |
|
|
1387 |
for my $bar ($::request->layout->get('actionbar')) { |
|
1388 |
$bar->add( |
|
1389 |
action => [ |
|
1390 |
t8('Save'), |
|
1391 |
submit => [ '#form', { action => "save_preferences" } ], |
|
1392 |
accesskey => 'enter', |
|
1393 |
], |
|
1394 |
); |
|
1395 |
} |
|
1396 |
} |
templates/webpages/am/config.html | ||
---|---|---|
3 | 3 |
[%- USE HTML %][%- USE L %] |
4 | 4 |
<h1>[% title %]</h1> |
5 | 5 |
|
6 |
<form method="post" action="am.pl" name="Form"> |
|
7 |
<input type="hidden" name="type" value="preferences"> |
|
8 |
|
|
6 |
<form method="post" action="am.pl" name="Form" id="form"> |
|
9 | 7 |
<div class="tabwidget"> |
10 | 8 |
<ul> |
11 | 9 |
<li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li> |
... | ... | |
245 | 243 |
</table> |
246 | 244 |
</div> |
247 | 245 |
</div> |
248 |
|
|
249 |
<p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p> |
|
250 | 246 |
</form> |
251 | 247 |
|
252 | 248 |
<script type="text/javascript"> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei »Benutzereinstellungen«