mirror of https://github.com/Aidaho12/haproxy-wi
v1.6.3
parent
6932527b11
commit
407e113cf9
|
@ -23,7 +23,7 @@ def login_page(error):
|
||||||
if error == "error":
|
if error == "error":
|
||||||
printError = "<b style='color: red'>Somthing wrong :( I'm sad about this, but try again!</b><br /><br />"
|
printError = "<b style='color: red'>Somthing wrong :( I'm sad about this, but try again!</b><br /><br />"
|
||||||
else:
|
else:
|
||||||
printError = "<b style='color: red'>First you need to login.</b><br /><br />"
|
printError = "<h2>Login page. Enter please</h2><br /><br />"
|
||||||
|
|
||||||
ref = form.getvalue('ref')
|
ref = form.getvalue('ref')
|
||||||
if ref is None:
|
if ref is None:
|
||||||
|
@ -33,8 +33,8 @@ def login_page(error):
|
||||||
|
|
||||||
print('<center><form name="auth" action="login.py" class="form-horizontal" method="post">')
|
print('<center><form name="auth" action="login.py" class="form-horizontal" method="post">')
|
||||||
print(printError)
|
print(printError)
|
||||||
print('<label for="login"> Login: </label> <input type="text" name="login" required class="form-control">')
|
print('<label for="login">Login: </label> <input type="text" name="login" required class="form-control"><br /><br />')
|
||||||
print('<label for="pass"> Pass: </label> <input type="password" name="pass" required class="form-control">')
|
print('<label for="pass">Pass: </label> <input type="password" name="pass" required class="form-control"><br /><br />')
|
||||||
print('<input type="hidden" value="%s" name="ref">' % ref)
|
print('<input type="hidden" value="%s" name="ref">' % ref)
|
||||||
print('<button type="submit" name="Login" value="Enter">Sign Up</button>')
|
print('<button type="submit" name="Login" value="Enter">Sign Up</button>')
|
||||||
print('</form></center>')
|
print('</form></center>')
|
||||||
|
|
|
@ -318,7 +318,7 @@ textarea {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
padding: 8px;
|
padding: 3px;
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
@ -408,4 +408,5 @@ label {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
padding-right: 10px;
|
||||||
}
|
}
|
Loading…
Reference in New Issue