X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcustom_variable_config%2Fform.html;h=c88711a5fb11e2d29d28dbba72cbea4b5317d475;hb=9f3c46ffb16c200246c545faa7f17686aa461483;hp=f29a3d8508f61836a6a212df33a0a9c0a10f68fa;hpb=2737667aa9394428f885187928509e7c5d0ec4d4;p=kivitendo-erp.git diff --git a/templates/webpages/custom_variable_config/form.html b/templates/webpages/custom_variable_config/form.html index f29a3d850..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) %]

@@ -12,7 +12,7 @@ [% 'Variable Name' | $T8 %](1) - [%- L.input_tag("config.name", SELF.config.name) %] + [%- L.input_tag("config.name", SELF.config.name, class='initial_focus') %] @@ -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 %] +

+