# edit all taxauthority prefs
+ setup_ustva_config_step1_action_bar();
+
$::form->header;
my $ustva = USTVA->new();
my %_hidden_local_variables = (
'saved' => $::locale->text('Check Details'),
- 'nextsub' => 'config_step2',
- 'warnung' => '0',
);
foreach my $variable (keys %_hidden_local_variables) {
$::auth->assert('advance_turnover_tax_return');
+ setup_ustva_config_step2_action_bar();
+
$form->header();
my $fa_land_nr = '';
my %_hidden_local_variables = (
'fa_land_nr' => $fa_land_nr,
'fa_bufa_nr' => $fa_bufa_nr,
- 'warnung' => 0,
'taxnumber' => $stnr,
'lastsub' => 'config_step1',
'nextsub' => 'save',
fa_voranmeld fa_dauerfrist
accounting_method
type
- saved callback
+ saved
);
foreach my $variable (@_hidden_form_variables) {
my $template_ref = {
input_steuernummer => $input_steuernummer,
readonly => '', #q|disabled="disabled"|,
- callback => $form->{callback},
COA_Germany => $form->{COA_Germany},
hidden_variables => $_hidden_variables_ref,
};
);
}
}
+
+sub setup_ustva_config_step1_action_bar {
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Continue'),
+ submit => [ '#form', { action => 'config_step2' } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
+sub setup_ustva_config_step2_action_bar {
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Save'),
+ submit => [ '#form', { action => 'save' } ],
+ accesskey => 'enter',
+ ],
+ action => [
+ t8('Back'),
+ call => [ 'kivi.history_back' ],
+ ],
+ );
+ }
+}
'Used for Purchase' => 'im Einkauf verwenden',
'Used for Sale' => 'im Verkauf verwenden',
'User' => 'Benutzer',
- 'User Config' => 'Einstellungen',
'User Preferences' => 'Benutzereinstellungen',
'User access' => 'Benutzerzugriff',
'User list' => 'Benutzerliste',
'config/kivitendo.conf: Missing parameters in "authentication/ldap". Required parameters are "host", "attribute" and "base_dn".' => 'config/kivitendo.conf: Fehlende Parameter in "authentication/ldap". Benötigt werden "host", "attribute" und "base_dn".',
'consumed' => 'Im Zeitraum',
'contact_list' => 'ansprechperson_liste',
- 'continue' => 'weiter',
'correction' => 'Korrektur',
'correction_br' => 'Korr.',
'cp_greeting to cp_gender migration' => 'Datenumwandlung von Titel nach Geschlecht (cp_greeting to cp_gender)',
'customer' => 'Kunde',
'customer_list' => 'kundenliste',
'dated' => 'datiert',
- 'debug' => 'Debug',
'delete' => 'Löschen',
'delete item' => 'Position löschen',
'deleted' => 'gelöscht',
[% USE HTML %]
<h1>[% 'Tax Office Preferences' | $T8 %]</h1>
-<form name="verzeichnis" method="post" action="[% HTML.escape(script) %]">
+<form name="verzeichnis" method="post" action="[% HTML.escape(script) %]" id="form">
<table width="100%">
<tr>
<td>
</table>
</fieldset>
-
- <br>
- <br>
- <hr>
- <!--<input type=submit class=submit name=action value="
- [% 'debug' | $T8 %]">-->
- <input type=submit class=submit name=action
- value="[% 'continue' | $T8 %]">
</td>
</tr>
</table>
[% USE HTML %]
<h1>[% 'Tax Office Preferences' | $T8 %]</h1>
- <form name="elsterform" method="post" action="[% script %]">
+ <form name="elsterform" method="post" action="[% script %]" id="form">
<table width="100%">
<tr>
<td colspan=2>
<hr>
</td>
</tr>
- <tr>
- <td align="left">
-
- [%- IF callback %]
- <input type="button" name="Verweis" value="[% 'User Config' | $T8 %]"
- onClick="self.location.href='[% callback %]">
- [%- ELSE %]
- <input type="submit" class="submit" name="action" value="[% 'back' | $T8 %]">
- [%- END %]
-
- [%- IF warnung %]
-
- <input type="hidden" name="nextsub" value="config_step2">
- <input type="submit" class="submit" name="action"
- value="[% 'continue' | $T8 %]">
-
- <input type="hidden" name="saved" value="[% 'Check
- Details' | $T8 %]">
-
- [%- ELSE %]
-
- <input type="hidden" name="nextsub" value="save">
- <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
-
- [%- END %]
-
- </td>
- <td align="right">
- <H2 class="confirm">[%- saved %]</H2>
- </td>
- </tr>
</table>
[%- FOREACH var = hidden_variables %]