Commit 6b5e2e8e authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(frontend): new machine route

parent d4e27462
......@@ -294,7 +294,7 @@ any '/admin/#type' => sub {
return admin($c);
any '/new_machine' => sub {
any '/new_machine.html' => sub {
my $c = shift;
return access_denied($c) if !$USER->can_create_machine;
return new_machine($c);
<div class="tab-pane fade show active" id="fromtemplate" role="tabpanel">
<div class="card-body">
<form name="new_machineForm" role="form" method="post" action="/new_machine" novalidate>
<form name="new_machineForm" role="form" method="post" action="/new_machine.html" novalidate>
<div class="form-group row">
<label for="backend" class="col-xl-3 col-form-label"><%=l 'Backend' %> <a
title="Choose the virtualization type of the Virtual Machine."><i class="fa fa-info-circle"></i></a></label>
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