X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fdepartment%2Fform.html;h=d009ea0c349f03609ed31980d03dc01862ffa3ff;hb=36dcbd724cb061f35c22d5a31c1a47aba30f348c;hp=f95836d771ddd72024efcfb548573a6083c0f02c;hpb=2ff2f6c9c9f95845ddb83d1cef264e580977759c;p=kivitendo-erp.git diff --git a/templates/webpages/department/form.html b/templates/webpages/department/form.html index f95836d77..d009ea0c3 100644 --- a/templates/webpages/department/form.html +++ b/templates/webpages/department/form.html @@ -12,26 +12,12 @@ [%- 'Description' | $T8 %] [% L.input_tag("department.description", SELF.department.description) %] - - - [%- 'Type' | $T8 %] - - [%- IF is_used %] - [% L.hidden_tag("role", SELF.department.role) %] - [%- IF SELF.department.role == "C" %][%- LxERP.t8('Cost Center') %][%- ELSE %][%- LxERP.t8('Profit Center') %][%- END %] - [%- ELSE %] - [% L.radio_button_tag("department.role", "value", "C", "label", LxERP.t8("Cost Center"), "checked", SELF.department.role == "C") %] -
- [% L.radio_button_tag("department.role", "value", "P", "label", LxERP.t8("Profit Center"), "checked", SELF.department.role == "P") %] - [%- END %] - -

[% L.hidden_tag("id", SELF.department.id) %] [% L.hidden_tag("action", "Department/dispatch") %] - + [% L.submit_tag("action_" _ (SELF.department.id ? "update" : "create"), LxERP.t8('Save')) %] [%- IF SELF.department.id && !is_used %] [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this department?")) %] [%- END %]