PracowniaProgramowania/trening-planer/rejestracja.html

93 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Twoj trening</title><link rel="Shortcut icon" href="img/logo2.jpg" />
<link type="text/css" href="/static/css/bootstrap.min.css" rel="stylesheet">
<link rel="Stylesheet" type="text/css" href="/static/css_moje/style_moje.css" />
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,400italic,500italic&subset=latin,latin-ext" rel="stylesheet">
<script>
function placeOrder2(form) {
if (sprawdzanieFormularza(Haslo2)) {
form.submit()}
}
function sprawdzanieFormularza(inputField){
var regex=document.getElementById('Haslo').value;
var regex2=document.getElementById('Haslo2').value;
if(regex!= regex2){
alert("HAsła muszą być takie same");
}
}
</script>
<style>body {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<nav class="navbar navbar-default navbar-fixed-top " style="background-color: #efefef;">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#mainmenu"
aria-expanded="false">
<span class="sr-only">Przełącznik nawigacji</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
<ul class="nav navbar-nav">
<li><a class="nav-link" href="/logowanie">Logowanie</a></li>
<li><a class="nav-link lista-menu" href="/rejestracja/">Zarejestruj</a></li>
<li><a class="nav-link" href="/start/">Start</a></li>
</ul>
</div>
</div>
</nav>
</div>
<br>
<div class="container" style="margin-top:100px;">
<div class="row">
<div class="rejestracja col-lg-offset-4 col-lg-4 text-center" style="background-color: #efefef; border-radius: 20%; text-align: center; height: 280px; width:350px; padding: 70px">
<form action="/rejestracja/" method="POST" >
<div class="col-lg-12 text-center">
<p>
{{ .Opis }}
</p>
<input type="text" class="form-control" name="Login" placeholder="Login" style="width: 150px; margin-bottom: 15px">
<input type="password" class="form-control" name="Haslo" id="Haslo" placeholder="Haslo" style="width: 150px; margin-bottom: 15px">
<input type="password" class="form-control" name="Haslo2" id="Haslo2" placeholder="Haslo" onblur ="sprawdzanieFormularza(this);" style="width: 150px; margin-bottom: 15px" >
</div>
<button type="submit" class="btn btn-default">Zarejestruj</button>
</form>
</div></div></div>
</body>
</html>