SymphonyElectron/js/basicAuth/basic-auth.html
Kiran Niranjan ee6cf8732b Electron-253
Added type button to prevent form submit
2017-12-28 17:18:00 +05:30

96 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Authentication Request</title>
<style>
html, body {
margin: 0;
height: 100%;
font-family: sans-serif;
}
.container {
display: flex;
flex-direction: column;
text-align: center;
padding: 20px
}
span {
padding-top: 10px;
text-align: start;
}
.hostname {
font-size: .9em;
}
.credentials-error {
color: red;
}
form {
padding-top: 15px;
}
table {
border-spacing: 5px;
}
input {
width: 200px;
height: 20px;
display: inline-block;
}
button {
width: 80px;
}
.footer {
display: flex;
text-align: center;
padding-top: 25px;
}
.button-container {
flex: 1;
}
</style>
</head>
<body>
<div class="container">
<span>Please provide your login credentials for:</span>
<span id="hostname" class="hostname">hostname</span>
<span id="credentialsError" class="credentials-error">Invalid user name/password</span>
<form id="basicAuth" name="Basic Auth" action="Login">
<table class="form">
<tbody>
<tr>
<td>User name:</td>
<td>
<input id="username" name="username" title="Username" required>
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input id="password" type="password" title="Password" required>
</td>
</tr>
</tbody>
</table>
<div class="footer">
<div class="button-container">
<button type="submit" id="login">Log In</button>
</div>
<div class="button-container">
<button type="button" id="cancel">Cancel</button>
</div>
</div>
</form>
</div>
</body>
</html>