Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
be616ce2
Commit
be616ce2
authored
Jan 20, 2021
by
fv3rdugo
Browse files
wip(frontend): add options
Issue #932
parent
b4b49a45
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/VM/Proxmox.pm
0 → 100644
View file @
be616ce2
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
;
templates/ng-templates/new_machine_template.html.ep
View file @
be616ce2
...
...
@@ -173,17 +173,46 @@
<div ng-if="backend == 'Proxmox'" class="from-group">
<div class="from-group row">
<label
for="id_iso"
class="col-xl-3 col-form-label"><%=l '
Select v
irtualization' %> <a
<label class="col-xl-3 col-form-label"><%=l '
V
irtualization
technology
' %> <a
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">
<button id="VM" ng-click="showVM=(showVM ? false : true)" class="btn btn-primary">
<i class="fas fa-desktop"></i> Create VM
</button>
<button id="CT" ng-click="" class="btn btn-primary" type="button">
<i class="fas fa-cube"></i> Create CT
</button>
<select ng-model="tech">
<option value="VM">KVM (Kernel-based Virtual Machine) for virtual machines
<option value="CT">LXC for containers
</select>
</div>
<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 ng-if="showVM">stub!</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment