X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=templates%2Fwebpages%2Fcustom_variable_config%2Fform.html;h=c88711a5fb11e2d29d28dbba72cbea4b5317d475;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=2703cdc1d13999d06dcd501cdcdab85f50833557;hpb=891f62176912eb5c1e8864a1140635e4ad533d08;p=kivitendo-erp.git diff --git a/templates/webpages/custom_variable_config/form.html b/templates/webpages/custom_variable_config/form.html index 2703cdc1d..c88711a5f 100644 --- a/templates/webpages/custom_variable_config/form.html +++ b/templates/webpages/custom_variable_config/form.html @@ -1,6 +1,6 @@ [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]

[% HTML.escape(title) %]

-
+ [%- L.hidden_tag("id", SELF.config.id) %]

@@ -67,17 +67,45 @@ [% L.radio_button_tag('config.flag_editable', value='0', id='config.flag_editable_0', label=LxERP.t8('No'), checked=(SELF.flags.editable ? '' : 1)) %] - -

+ + [% 'Deactivate by default' | $T8 %](7) + + [% L.radio_button_tag('config.flag_defaults_to_invalid', value='1', id='config.flag_defaults_to_invalid_1', label=LxERP.t8('Yes'), checked=(SELF.flags.defaults_to_invalid ? 1 : '')) %] + [% L.radio_button_tag('config.flag_defaults_to_invalid', value='0', id='config.flag_defaults_to_invalid_0', label=LxERP.t8('No'), checked=(SELF.flags.defaults_to_invalid ? '' : 1)) %] + + + + [% 'Filter by Partsgroups' | $T8 %] + + [% L.radio_button_tag('config.flag_partsgroup_filter', value='1', id='config_flag_partsgroup_filter_1', label=LxERP.t8('Yes'), checked=(SELF.flags.partsgroup_filter ? 1 : ''), onclick='update_pg_filter_row()') %] + [% L.radio_button_tag('config.flag_partsgroup_filter', value='0', id='config_flag_partsgroup_filter_0', label=LxERP.t8('No'), checked=(SELF.flags.partsgroup_filter ? '' : 1), onclick='update_pg_filter_row()') %] + + + + + + [% L.select_tag('config.partsgroups[]', + all_partsgroups, + id => "partsgroups", + value_key => "id", + title_key => "partsgroup", + default => SELF.config.partsgroups, + default_value_key => "id", + multiple => 1) %] + [% L.multiselect2side("partsgroups", + labelsx => LxERP.t8("All partsgroups"), + labeldx => LxERP.t8("Partsgroups where variables are shown")) %] + + + + [% 'Display in basic data tab' | $T8 %] + + [% L.radio_button_tag('config.first_tab', value='1', id='config.first_tab', label=LxERP.t8('Yes'), checked=(SELF.config.first_tab ? 1 : '')) %] + [% L.radio_button_tag('config.first_tab', value='0', id='config.first_tab', label=LxERP.t8('No'), checked=(SELF.config.first_tab ? '' : 1)) %] + + -

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


@@ -99,7 +127,7 @@ (4) [% 'The default value depends on the variable type:' | $T8 %]
@@ -110,7 +138,7 @@
@@ -126,6 +154,12 @@ [% 'Otherwise the variable is only available for printing.' | $T8 %]

+

+ (7) + + [%- 'A variable marked as \'Deactivate by default\' isn\'t automatically added to all articles, and has to be explicitly added for each desired article in its master data tab. Only then can the variable be used for that article in the records.' | $T8 %] +

+