'timestamp' => $locale->text('Timestamp'),
'bool' => $locale->text('Yes/No (Checkbox)'),
'select' => $locale->text('Selection'),
+ 'customer' => $locale->text('Customer'),
);
-our @types = qw(text textfield number date bool select); # timestamp
+our @types = qw(text textfield number date bool select customer); # timestamp
our @modules = ({ module => 'CT', description => $locale->text('Customers and vendors') },
{ module => 'IC', description => $locale->text('Parts, services and assemblies') },
$main::lxdebug->leave_sub();
}
+sub update {
+ $main::lxdebug->enter_sub();
+
+ my $form = $main::form;
+
+ $main::auth->assert('config');
+
+ $form->{included_by_default} = $form->{inclusion} eq 'yes_default_on';
+ $form->{includeable} = $form->{inclusion} ne 'no';
+
+ display_cvar_config_form();
+
+ $main::lxdebug->leave_sub();
+}
+
+
sub dispatcher {
my $form = $main::form;
my $locale = $main::locale;
- foreach my $action (qw(list_cvar_configs add_cvar_config)) {
+ foreach my $action (qw(list_cvar_configs add_cvar_config update)) {
if ($form->{"action_${action}"}) {
call_sub($action);
return;
}
1;
+