Autocomplete of for OTA

This commit is contained in:
JonatanRek 2020-05-17 14:25:22 +02:00
parent 2c5d861011
commit 6a20e9c684
4 changed files with 6 additions and 5 deletions

View File

@ -3,13 +3,14 @@
<head>
<?php
$partial = new Partial('head');
$partial->prepare('baseDir',$BASEDIR);
$partial->render();
?>
<title><?php echo $TITLE ?></title>
</head>
<body class="no-transitions">
<?php
if (isset($ota) && $ota != '') {
if (isset($ota) && $ota != '') {
$partial = new Partial('loginOta');
$partial->prepare('ota',$ota);
$partial->render();
@ -18,7 +19,7 @@
$partial->render();
}
?>
<?php
$partial = new Partial('footer');
$partial->render();

View File

@ -2,7 +2,7 @@
<div class="modal">
<h4 class="mb-4">OTA</h4>
<form method="post">
<input type="hidden" name="otaSecret" value="<?php echo $OTA; ?>"/>
<input type="hidden" name="otaSecret" value="<?php echo $OTA; ?>" autocomplete="off"/>
<div class="field">
<div class="label">Code:</div>
<input class="input" type="text" name="otaCode" placeholder=""/>

View File

@ -1,6 +1,6 @@
<div class="modal-container">
<div class="modal">
<h4 class="mb-4">Login</h4>
<h4 class="mb-4">OAuth</h4>
<form method="post">
<div class="field">
<div class="label">Name:</div>

View File

@ -2,7 +2,7 @@
<div class="modal">
<h4 class="mb-4">OTA</h4>
<form method="post">
<input type="hidden" name="otaSecret" value="<?php echo $OTA; ?>"/>
<input type="hidden" name="otaSecret" value="<?php echo $OTA; ?>" autocomplete="off"/>
<div class="field">
<div class="label">Code:</div>
<?php