127 lines
4.6 KiB
HTML
127 lines
4.6 KiB
HTML
{{ define "Index" }}
|
|
<!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>Dodawanie ćwiczenia</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 dodawanieCwiczenia(id) {
|
|
var elem = document.getElementById(id);
|
|
if(elem.style.display==''){ elem.style.display='none'; return; }
|
|
elem.style.display='';
|
|
}
|
|
|
|
</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">
|
|
<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="/planer/">Zaplanuj nowy trening</a></li>
|
|
<li><a class="nav-link" href="/trening/">Twoj trening</a></li>
|
|
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a></li>
|
|
<li><a class="nav-link lista-menu" href="/dodajcwiczenie/">Dodaj ćwiczenie</a></li>
|
|
|
|
<li><a class="nav-link" href="/wymiary/">Wymiary</a></li>
|
|
<li> <form action="/logowanie" method="GET"> <button class="btn btn-default" style="height: 50px" value="brak" name="cookies" >Wyloguj</button></form></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
</div><br>
|
|
<br><br>
|
|
<br>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-8">
|
|
|
|
<form action="/dodajcwiczenie/" method="POST">
|
|
|
|
|
|
|
|
|
|
<div class="col-lg-9" >Nazwa:<input type="text" class="form-control" name="Nazwa" placeholder="Nazwa" style="width: 550px"></div>
|
|
<div class="col-lg-3">
|
|
Rodzaj:<br>
|
|
<!-- <input type="text" class="form-control" name="Rodzaj" placeholder="Rodzaj" style="width: 150px"> -->
|
|
<select name="Rodzaj" style="width: 160px">
|
|
<option>Łydki</option>
|
|
<option>Uda</option>
|
|
<option>Pośladki</option>
|
|
<option>Plecy</option>
|
|
<option>Trieps</option>
|
|
<option>Barki</option>
|
|
<option>Klatka piersiowa</option>
|
|
<option>Biceps</option>
|
|
<option>Przedramiona</option>
|
|
<option>Brzuch i korpus</option></select>
|
|
</div>
|
|
<div class="col-lg-12" style="margin-top: 15px">Film:<input type="text" class="form-control" name="Zdjecie" placeholder="Film" style="width: 750px"></div>
|
|
<div class="col-lg-12" style="margin-top: 15px">Opis:<textarea type="textarea" class="form-control" name="Opis" style="width: 750px;height: 300px"></textarea></div>
|
|
|
|
<div class="col-lg-offset-5 col-lg-2 btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem" style="margin-top: 15px;" >
|
|
<button type="submit" class="btn btn-default" style="height: 50px" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div> </form>
|
|
</div>
|
|
|
|
<div class="col-lg-offset-1 col-lg-3" style="background-color: #94B8B85C; vertical-align: top; padding: 40px;font-size: 14px;"><span style="font-size:16px">Lista dodanych przez Ciebie ćwiczeń</span><br/><br/>
|
|
|
|
|
|
|
|
<form action="/usuncwiczenie/" method="POST">
|
|
{{ range . }}
|
|
<input type="radio" name="NazwaUsun" value={{.Nazwa}}> {{.Nazwa}}
|
|
<br/>
|
|
{{end}}
|
|
<button type="submit" class="btn btn-default" style="margin-top: 20px">Usuń</button>
|
|
</form>
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
</div></div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|
|
{{ end}} |