Revision 6988b41a
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
SL/CVar.pm | ||
---|---|---|
360 | 360 |
my %options = ( name_prefix => "$params{name_prefix}", |
361 | 361 |
name_postfix => "$params{name_postfix}", |
362 | 362 |
hide_non_editable => $params{hide_non_editable}, |
363 |
show_disabled_message => $params{show_disabled_message}, |
|
363 | 364 |
); |
364 | 365 |
|
365 | 366 |
foreach my $var (@{ $params{variables} }) { |
366 |
$var->{HTML_CODE} = $form->parse_html_template('amcvar/render_inputs', { 'var' => $var, %options });
|
|
367 |
$var->{VALID_BOX} = "<input type=checkbox name='$options{name_prefix}cvar_$var->{name}$options{name_postfix}_valid'@{[$var->{valid} ? ' checked' : '']}>";
|
|
367 |
$var->{HTML_CODE} = $form->parse_html_template('amcvar/render_inputs', { var => $var, %options });
|
|
368 |
$var->{VALID_BOX} = $form->parse_html_template('amcvar/render_checkboxes', { var => $var, %options });
|
|
368 | 369 |
} |
369 | 370 |
|
370 | 371 |
$main::lxdebug->leave_sub(); |
Auch abrufbar als: Unified diff
Ungültige Custom Variablen in der Verkaufsmaske ausblenden.