visual change

This commit is contained in:
alejandro.campos@artica.es 2023-10-10 13:24:27 +02:00
parent 295654d26b
commit 8cc34d2199

View File

@ -79,6 +79,7 @@ function quickShell()
return; return;
} }
$form_sent = get_parameter('form-sent', false);
$method = get_parameter('method', null); $method = get_parameter('method', null);
$setup_anchor = html_print_anchor( $setup_anchor = html_print_anchor(
@ -119,7 +120,7 @@ function quickShell()
$gotty_addr = $connectionURL.$args; $gotty_addr = $connectionURL.$args;
// Username. Retrieve from form. // Username. Retrieve from form.
if (empty($username) === true) { if ($form_sent === false) {
// No username provided, ask for it. // No username provided, ask for it.
$wiz = new Wizard(); $wiz = new Wizard();
@ -144,6 +145,9 @@ function quickShell()
p=23; p=23;
wizard.querySelector('ul > li').classList.remove('visible'); wizard.querySelector('ul > li').classList.remove('visible');
wizard.querySelector('ul > li').classList.add('invisible_important'); wizard.querySelector('ul > li').classList.add('invisible_important');
$('#text-username').prop('required', false);
} else {
$('#text-username').prop('required', true);
} }
$('#text-port').val(p);"; $('#text-port').val(p);";
@ -182,6 +186,13 @@ function quickShell()
'script' => $method_script, 'script' => $method_script,
], ],
], ],
[
'arguments' => [
'type' => 'hidden',
'name' => 'form-sent',
'value' => true,
],
]
], ],
], ],
false, false,
@ -238,6 +249,7 @@ function quickShell()
height:100%; height:100%;
position: relative!important; position: relative!important;
flex-grow: 1; flex-grow: 1;
border: 0px;
} }
</style> </style>