2019-01-31 22:31:47 +01:00
|
|
|
{{ define "Index" }}
|
2018-12-31 00:54:28 +01:00
|
|
|
<!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>
|
2019-01-20 11:32:12 +01:00
|
|
|
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
|
2018-12-31 00:54:28 +01:00
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
|
2019-01-20 11:32:12 +01:00
|
|
|
|
2019-01-16 23:45:53 +01:00
|
|
|
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a></li>
|
2019-02-09 22:13:13 +01:00
|
|
|
<li><a class="nav-link" href="/trening/">Twoj trening</a></li>
|
2019-01-16 23:45:53 +01:00
|
|
|
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a></li>
|
2019-01-28 21:15:04 +01:00
|
|
|
<li><a class="nav-link lista-menu" href="/dodajcwiczenie/">Dodaj ćwiczenie</a></li>
|
2019-01-20 11:32:12 +01:00
|
|
|
|
|
|
|
<li><a class="nav-link" href="/wymiary/">Wymiary</a></li>
|
2019-01-16 23:45:53 +01:00
|
|
|
<li> <form action="/logowanie" method="GET"> <button class="btn btn-default" style="height: 50px" value="brak" name="cookies" >Wyloguj</button></form></li>
|
2018-12-31 00:54:28 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
</div><br>
|
|
|
|
<br><br>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2019-01-20 11:32:12 +01:00
|
|
|
|
|
|
|
|
2019-01-31 22:31:47 +01:00
|
|
|
<div class="col-lg-8">
|
2018-12-31 00:54:28 +01:00
|
|
|
|
|
|
|
<form action="/dodajcwiczenie/" method="POST">
|
|
|
|
|
|
|
|
|
2019-01-31 22:31:47 +01:00
|
|
|
|
2019-01-20 11:32:12 +01:00
|
|
|
|
2019-02-09 22:13:13 +01:00
|
|
|
<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">
|
2019-02-03 23:59:21 +01:00
|
|
|
Rodzaj:<br>
|
2019-02-03 00:45:25 +01:00
|
|
|
<!-- <input type="text" class="form-control" name="Rodzaj" placeholder="Rodzaj" style="width: 150px"> -->
|
2019-02-03 23:59:21 +01:00
|
|
|
<select name="Rodzaj" style="width: 160px">
|
2019-02-03 00:45:25 +01:00
|
|
|
<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>
|
2019-02-03 23:59:21 +01:00
|
|
|
<option>Brzuch i korpus</option></select>
|
2019-02-03 00:45:25 +01:00
|
|
|
</div>
|
2019-02-09 22:13:13 +01:00
|
|
|
<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>
|
2019-01-20 11:32:12 +01:00
|
|
|
|
|
|
|
<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;" >
|
2019-01-31 22:31:47 +01:00
|
|
|
<button type="submit" class="btn btn-default" style="height: 50px" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div> </form>
|
|
|
|
</div>
|
2018-12-31 00:54:28 +01:00
|
|
|
|
2019-02-09 22:13:13 +01:00
|
|
|
<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/>
|
2019-02-03 00:45:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form action="/usuncwiczenie/" method="POST">
|
|
|
|
{{ range . }}
|
|
|
|
<input type="radio" name="NazwaUsun" value={{.Nazwa}}> {{.Nazwa}}
|
|
|
|
<br/>
|
|
|
|
{{end}}
|
2019-02-09 22:13:13 +01:00
|
|
|
<button type="submit" class="btn btn-default" style="margin-top: 20px">Usuń</button>
|
2019-02-03 00:45:25 +01:00
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div></div>
|
2018-12-31 00:54:28 +01:00
|
|
|
|
2019-01-31 22:31:47 +01:00
|
|
|
</div>
|
2018-12-31 00:54:28 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
2019-01-31 22:31:47 +01:00
|
|
|
{{ end}}
|