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

@@ -74,17 +74,38 @@ [% 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") %] +


@@ -106,7 +127,7 @@ (4) [% 'The default value depends on the variable type:' | $T8 %]
@@ -117,7 +138,7 @@
@@ -149,6 +170,11 @@ function update_included_by_default() { function update_ic_rows() { $('[data-show-for="IC"]').toggle($('#module').val() === "IC"); + $('[data-show-for="IC+PGFILTER"]').toggle($('#module').val() === "IC" && $('#config_flag_partsgroup_filter_1').prop('checked')); +} + +function update_pg_filter_row() { + $('[data-show-for="IC+PGFILTER"]').toggle($('#module').val() === "IC" && $('#config_flag_partsgroup_filter_1').prop('checked')); } function check_prerequisites() {