Commit db657b4d authored by fv3rdugo's avatar fv3rdugo
Browse files

Add a warning if VM has not graphics parameters

parent 62966f4b
......@@ -8,10 +8,18 @@
<form class="form-horizontal" action="<%= $action %>" method="post">
<div class="col-md-6">
<div >
% my $driver = $domain->drivers("image");
% my ($first, $second) = $driver->get_options();
<div ng-show="<%= !defined ($domain->get_driver("image")) %>" class="alert alert-danger">
<strong>This machine has not Graphics parameters!</strong>
</div>
% if ($USER->is_admin) {
% }
% for my $driver_name (qw(image jpeg zlib playback streaming)) {
% my $driver = $domain->drivers($driver_name);
<div >
<span class="col-lg-2 control-label"><label for="driver_<%= $driver_name %>"><%= $driver_name %></label></span>
% if (!$driver) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment