Unverified Commit 41dd8fc0 authored by Francesc Guasch's avatar Francesc Guasch Committed by GitHub
Browse files

Refactor mojo9 (#1563)

refactor(frontend): mojo 9 compatibility

* wip: allow link size
* wip: fail test if no new machine
* refactor(frontend): new machine route

issue #1547 
parent c0d3dcb8
......@@ -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);
......
......@@ -671,7 +671,9 @@ sub mojo_create_domain($t, $vm_name) {
)->status_is(302);
wait_request(debug => 0, background => 1);
return rvd_front->search_domain($name);
my $domain = rvd_front->search_domain($name);
ok($domain,"Expecting domain $name created") or exit;
return $domain;
}
......
......@@ -238,6 +238,7 @@ sub _check_html_lint($url, $content, $option = {}) {
|| $error->errtext =~ /Unknown attribute "(min|max).*input/ # Check this one
|| $error->errtext =~ /Unknown attribute "(charset|crossorigin|integrity)/
|| $error->errtext =~ /Unknown attribute "image.* for tag <div/
|| $error->errtext =~ /Unknown attribute "sizes" for tag <link/
) {
next;
}
......
<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