X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fbuchungsgruppen%2Fform.html;h=ad9db1445d816fd47c829e0a194cec8739f7e346;hb=cf9865dc7faad6b1ea68e2c5db8b8b44d316fd26;hp=88c19f320e9a8496f92994ed2b85416ef4101c1b;hpb=6e6038682b1a2b6e6bc74f1eee40eba21afcb7e9;p=kivitendo-erp.git diff --git a/templates/webpages/buchungsgruppen/form.html b/templates/webpages/buchungsgruppen/form.html index 88c19f320..ad9db1445 100644 --- a/templates/webpages/buchungsgruppen/form.html +++ b/templates/webpages/buchungsgruppen/form.html @@ -1,4 +1,7 @@ -[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]

[% HTML.escape(title) %]

+[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%] +[% SET style="width: 400px" %] + +

[% HTML.escape(title) %]

[%- L.hidden_tag("id", SELF.config.id) %] @@ -9,28 +12,34 @@ [%- L.input_tag("config.description", SELF.config.description) %] - [% 'Inventory account' | $T8 %] - [%- IF SELF.config.id AND linked_parts != 0 %] - [%- CHARTLIST.inventory_accno %] -- [%- CHARTLIST.inventory_accno_description %] + [% 'Inventory Account' | $T8 %] + [%- IF NOT SELF.config.id %] + [% L.chart_picker("config.inventory_accno_id", SELF.defaults.inventory_accno_id, choose=1, type='IC', style=style) %] + [%- ELSIF SELF.config.id AND SELF.config.orphaned %] + [% L.chart_picker("config.inventory_accno_id", SELF.config.inventory_accno_id, choose=1, type='IC', style=style) %] [%- ELSE %] - [%- L.select_tag("config.inventory_accno_id", ACCOUNTS.ic, title_sub=\account_label, default=SELF.config.inventory_accno_id) %] + [%- CHARTLIST.inventory_accno_description %] [%- END %] [%- FOREACH tz = TAXZONES %] [% 'Revenue' | $T8 %] [% HTML.escape(tz.description) %] - [%- IF SELF.config.id AND linked_parts != 0 %] - [% CHARTLIST.${tz.id}.income_accno %] -- [% CHARTLIST.${tz.id}.income_accno_description %] + [%- IF NOT SELF.config.id %] + [% L.chart_picker('income_accno_id_' _ tz.id, SELF.defaults.income_accno_id, choose=1, type='IC_income,IC_sale', style=style) %] + [%- ELSIF SELF.config.id AND SELF.config.orphaned %] + [% L.chart_picker('income_accno_id_' _ tz.id, CHARTLIST.${tz.id}.income_accno_id, choose=1, type='IC_income,IC_sale', style=style) %] [%- ELSE %] - [%- L.select_tag('income_accno_id_' _ tz.id, ACCOUNTS.ic_income, title_sub=\account_label, default=CHARTLIST.${tz.id}.income_accno_id) %] + [% CHARTLIST.${tz.id}.income_accno_description %] [%- END %] [% 'Expense' | $T8 %] [% HTML.escape(tz.description) %] - [%- IF SELF.config.id AND linked_parts != 0 %] - [% CHARTLIST.${tz.id}.expense_accno %] -- [% CHARTLIST.${tz.id}.expense_accno_description %] + [%- IF NOT SELF.config.id %] + [% L.chart_picker('expense_accno_id_' _ tz.id, SELF.defaults.expense_accno_id, choose=1, type='IC_expense,IC_cogs', style=style) %] + [%- ELSIF SELF.config.id AND SELF.config.orphaned %] + [% L.chart_picker('expense_accno_id_' _ tz.id, CHARTLIST.${tz.id}.expense_accno_id, choose=1, type='IC_expense,IC_cogs', style=style) %] [%- ELSE %] - [%- L.select_tag('expense_accno_id_' _ tz.id, ACCOUNTS.ic_expense, title_sub=\account_label, default=CHARTLIST.${tz.id}.expense_accno_id) %] + [% CHARTLIST.${tz.id}.expense_accno_description %] [%- END %] [%- END %] @@ -39,7 +48,9 @@

[% L.hidden_tag("action", "Buchungsgruppen/dispatch") %] [% L.submit_tag("action_" _ (SELF.config.id ? "update" : "create"), LxERP.t8('Save'), onclick="return check_prerequisites();") %] - [%- LxERP.t8("Cancel") %] + [%- IF SELF.config.id AND SELF.config.orphaned %] + [% L.submit_tag("action_delete", LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %] + [%- END %]