Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 36703a86

Von Bernd Blessmann vor fast 10 Jahren hinzugefügt

  • ID 36703a86a998c7c395f110f94b3b3feebc2a3a80
  • Vorgänger 28f6dabe
  • Nachfolger cd443e24

Warengruppen-Filter f. CVars bei Waren

cherry-pick aus Kundenprojekt und Anpassungen an unstable (hauptsächlich
Umstellung auf Controller)

Conflicts:

SL/CVar.pm
SL/DB/CustomVariableConfig.pm
bin/mozilla/amcvar.pl
bin/mozilla/io.pl
templates/webpages/amcvar/display_cvar_config_form.html
templates/webpages/amcvar/render_inputs_block.html

Unterschiede anzeigen:

templates/webpages/custom_variable_config/form.html
74 74
     [% 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)) %]
75 75
    </td>
76 76
   </tr>
77
   <tr data-show-for="IC"[% UNLESS SELF.module == 'IC' %] style="display: none;"[% END %]>
78
    <td align="right">[% 'Filter by Partsgroups' | $T8 %]</td>
79
    <td>
80
     [% 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()') %]
81
     [% 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()') %]
82
    </td>
83
   </tr>
84
   <tr data-show-for="IC+PGFILTER"[% UNLESS (SELF.module == 'IC' && SELF.flags.partsgroup_filter) %] style="display: none;"[% END %]>
85
    <td></td>
86
    <td>
87
  [% L.select_tag('config.partsgroups[]',
88
                      all_partsgroups,
89
                      id                => "partsgroups",
90
                      value_key         => "id",
91
                      title_key         => "partsgroup",
92
                      default           => SELF.config.partsgroups,
93
                      default_value_key => "id",
94
                      multiple          => 1) %]
95
      [% L.multiselect2side("partsgroups",
96
                            labelsx => LxERP.t8("All partsgroups"),
97
                            labeldx => LxERP.t8("Partsgroups where variables are shown")) %]
98
    </td>
99
   </tr>
77 100
  </table>
78 101
 </p>
79 102

  
......
149 172

  
150 173
function update_ic_rows() {
151 174
  $('[data-show-for="IC"]').toggle($('#module').val() === "IC");
175
  $('[data-show-for="IC+PGFILTER"]').toggle($('#module').val() === "IC" && $('#config_flag_partsgroup_filter_1').prop('checked'));
176
}
177

  
178
function update_pg_filter_row() {
179
  $('[data-show-for="IC+PGFILTER"]').toggle($('#module').val() === "IC" && $('#config_flag_partsgroup_filter_1').prop('checked'));
152 180
}
153 181

  
154 182
function check_prerequisites() {

Auch abrufbar als: Unified diff