my $name="enable.$plugin";
$form->field(
name => $name,
- label => "",
- type => "checkbox",
- options => [ [ 1 => sprintf(gettext("enable %s?"), $plugin) ] ],
+ label => sprintf(gettext("enable %s?"), $plugin),
+ type => "radio",
value => $enabled,
fieldset => $section,
+ options => [
+ [ 1 => gettext("Yes") ],
+ [ 0 => gettext("No") ]
+ ],
);
if ($plugin_forced) {
$form->field(name => $name, disabled => 1);
elsif ($info{type} eq "boolean") {
$form->field(
name => $name,
- label => "",
- type => "checkbox",
+ label => $description,
+ type => "radio",
value => $value,
- options => [ [ 1 => $description ] ],
+ options => [
+ [ 1 => gettext("Yes") ],
+ [ 0 => gettext("No") ]
+ ],
fieldset => $section,
);
}
[plugins => gettext("plugins")]
],
action => $config{cgiurl},
+ table => 0,
template => {type => 'div'},
stylesheet => IkiWiki::baseurl()."style.css",
);
delete $rebuild{$field};
}
else {
- print STDERR ">>$key (@value) ($config{$key})\n";
$config{$key}=$value[0];
}
}
}
if (%rebuild && ! $form->field("rebuild_asked")) {
- print STDERR ">>".(join "," , keys %rebuild)."\n";
my $required=0;
foreach my $field ($form->field) {
$required=1 if $rebuild{$field};