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

View File

@ -2,7 +2,7 @@
<div class="modal"> <div class="modal">
<h4 class="mb-4">OTA</h4> <h4 class="mb-4">OTA</h4>
<form method="post"> <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="field">
<div class="label">Code:</div> <div class="label">Code:</div>
<input class="input" type="text" name="otaCode" placeholder=""/> <input class="input" type="text" name="otaCode" placeholder=""/>

View File

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

View File

@ -2,7 +2,7 @@
<div class="modal"> <div class="modal">
<h4 class="mb-4">OTA</h4> <h4 class="mb-4">OTA</h4>
<form method="post"> <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="field">
<div class="label">Code:</div> <div class="label">Code:</div>
<?php <?php