Commit be616ce2 authored by fv3rdugo's avatar fv3rdugo
Browse files

wip(frontend): add options

Issue #932
parent b4b49a45
package Ravada::VM::Proxmox;
=head1 NAME
Ravada::VM::Proxmox - Direct integration with Proxmox
=cut
use Carp qw(croak carp cluck);
use Data::Dumper;
use Moose;
#use Ravada::Domain::Proxmox
use Ravada::Utils
#with 'Ravada::VM';
has type => (
is => 'ro'
,isa => 'Str'
,default => 'Proxmox'
);
############################################################################
sub connect {
return 1;
}
1;
...@@ -173,17 +173,46 @@ ...@@ -173,17 +173,46 @@
<div ng-if="backend == 'Proxmox'" class="from-group"> <div ng-if="backend == 'Proxmox'" class="from-group">
<div class="from-group row"> <div class="from-group row">
<label for="id_iso" class="col-xl-3 col-form-label"><%=l 'Select virtualization' %> <a <label class="col-xl-3 col-form-label"><%=l 'Virtualization technology' %> <a
title="Choose Virtual Machine or LXC container you want to install."><i class="fa fa-info-circle"></i></a></label> title="Choose Virtual Machine or LXC container you want to install."><i class="fa fa-info-circle"></i></a></label>
<div class="col-lg-9"> <div class="col-lg-9">
<button id="VM" ng-click="showVM=(showVM ? false : true)" class="btn btn-primary"> <select ng-model="tech">
<i class="fas fa-desktop"></i>&nbsp;Create VM <option value="VM">KVM (Kernel-based Virtual Machine) for virtual machines
</button> <option value="CT">LXC for containers
<button id="CT" ng-click="" class="btn btn-primary" type="button"> </select>
<i class="fas fa-cube"></i>&nbsp;Create CT </div>
</button> <div ng-switch="tech" class="from-group row">
<div ng-switch-when="VM">
<label class="col-xl-3 col-form-label"><%=l 'Node' %> <a title="Select the physical server on which the VM will run">
<i class="fa fa-info-circle"></i></a></label>
<div class="col-lg-9">
<select ng-model="tech">
<option value="VM">
<option value="CT">
</select>
</div>
<!-- VM ID:
Name:
Resource Pool:
Disc Image file (iso) Storage: local
ISO image: ....
Guest OS:
Type
Version
Graphic card: ...
SCSI Controller:
Qemu Agent: x
BIOS:
Machine:
Memory:
Minimum memory:
Network: options
-->
</div>
<div ng-switch-when="CT">
stub!
</div>
</div> </div>
<div ng-if="showVM">stub!</div>
</div> </div>
</div> </div>
......
Markdown is supported
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