<h1 class='newstitle'> <TMPL_VAR title> : <TMPL_VAR name> </h1>
</div>
<div class='bodydiv'>
- <label onclick="toggle_display('log', 'arrow')"><img src="/bweb/right.gif" id='arrow' title="See output" > Command output</label><br>
- <pre id='log' style='font-size: 10px;display:none'></TMPL_UNLESS>
+ <label onclick="toggle_display('log_<TMPL_VAR ID>', 'arrow_<TMPL_VAR ID>')"><img src="/bweb/right.gif" id='arrow_<TMPL_VAR ID>' title="See output" > Command output</label><br>
+ <pre id='log_<TMPL_VAR ID>' style='font-size: 10px;display:none'></TMPL_UNLESS>
<TMPL_VAR content>
<TMPL_UNLESS notail></pre>
</div></TMPL_UNLESS>
<h1 class='newstitle'> <TMPL_VAR title> : <TMPL_VAR name> </h1>
</div>
<div class='bodydiv'>
- <label onclick="toggle_display('log', 'arrow')"><img src="/bweb/right.gif" id='arrow' title="See output" > Command output</label><br>
- <pre id='log' style='font-size: 10px;display:none'></TMPL_UNLESS>
+ <label onclick="toggle_display('log_<TMPL_VAR ID>', 'arrow_<TMPL_VAR ID>')"><img src="/bweb/right.gif" id='arrow_<TMPL_VAR ID>' title="See output" > Command output</label><br>
+ <pre id='log_<TMPL_VAR ID>' style='font-size: 10px;display:none'></TMPL_UNLESS>
<TMPL_VAR content>
<TMPL_UNLESS notail></pre>
</div></TMPL_UNLESS>
<h1 class='newstitle'> <TMPL_VAR title> : <TMPL_VAR name> </h1>
</div>
<div class='bodydiv'>
- <label onclick="toggle_display('log', 'arrow')"><img src="/bweb/right.gif" id='arrow' title="See output" > Command output</label><br>
- <pre id='log' style='font-size: 10px;display:none'></TMPL_UNLESS>
+ <label onclick="toggle_display('log_<TMPL_VAR ID>', 'arrow_<TMPL_VAR ID>')"><img src="/bweb/right.gif" id='arrow_<TMPL_VAR ID>' title="See output" > Command output</label><br>
+ <pre id='log_<TMPL_VAR ID>' style='font-size: 10px;display:none'></TMPL_UNLESS>
<TMPL_VAR content>
<TMPL_UNLESS notail></pre>
</div></TMPL_UNLESS>
debug => qr/^(on)?$/,
lang => qr/^(\w\w)?$/,
email_media => qr/^([\w\d\.-]+@[\d\w\.-]+)$/,
- graph_font => qr!^([/\w\d\.-]+.ttf)$!,
+ graph_font => qr!^([/\w\d\.-]+.ttf)?$!,
bconsole => qr!^(.+)?$!,
syslog_file => qr!^(.+)?$!,
log_dir => qr!^(.+)?$!,
content => $ret,
title => "Delete a job ",
name => "delete jobid=$arg->{jobid}",
+ id => $cur_id++,
}, "command.tpl");
}
}
content => $b->send_cmd($update),
title => "Update a volume ",
name => $update,
+ id => $cur_id++,
}, "command.tpl");
title => "Scanning autochanger content ",
name => "update slots",
notail => 1,
+ id => $cur_id++,
}, "command.tpl");
my $b = new Bconsole(pref => $self->{info},timeout => 60,log_stdout => 1);
$b->update_slots($ach->{name});
content => $b->purge_volume($v),
title => "Purge media",
name => "purge volume=$v",
+ id => $cur_id++,
}, "command.tpl");
}
$b->close();
content => $b->prune_volume($v),
title => "Prune volume",
name => "prune volume=$v",
+ id => $cur_id++,
}, "command.tpl");
}
$b->close();
content => $b->cancel($arg->{jobid}),
title => "Cancel job",
name => "cancel jobid=$arg->{jobid}",
+ id => $cur_id++,
}, "command.tpl");
}
content => $b->send_cmd("$cmd job=\"$arg->{job}\""),
title => "$cmd $arg->{job}",
name => "$cmd job=\"$arg->{job}\"",
+ id => $cur_id++,
}, "command.tpl");
}
content => $ret,
title => "Storage ",
name => $cmd,
+ id => $cur_id++,
}, "command.tpl");
} else {
my $storages= [ map { { name => $_ } } $b->list_storage()];
<h1 class='newstitle'> <TMPL_VAR title> : <TMPL_VAR name> </h1>
</div>
<div class='bodydiv'>
- <label onclick="toggle_display('log', 'arrow')"><img src="/bweb/right.gif" id='arrow' title="See output" > Command output</label><br>
- <pre id='log' style='font-size: 10px;display:none'></TMPL_UNLESS>
+ <label onclick="toggle_display('log_<TMPL_VAR ID>', 'arrow_<TMPL_VAR ID>')"><img src="/bweb/right.gif" id='arrow_<TMPL_VAR ID>' title="See output" > Command output</label><br>
+ <pre id='log_<TMPL_VAR ID>' style='font-size: 10px;display:none'></TMPL_UNLESS>
<TMPL_VAR content>
<TMPL_UNLESS notail></pre>
</div></TMPL_UNLESS>