376 lines
12 KiB
HTML
376 lines
12 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>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 dodawanieCwiczenia(id) {
|
|
var elem = document.getElementById(id);
|
|
if(elem.style.display==''){ elem.style.display='none'; return; }
|
|
elem.style.display='';
|
|
}
|
|
|
|
|
|
const input = document.getElementById("Serie");
|
|
const val = input.value;
|
|
|
|
if (!val.length) {
|
|
console.log('Nie wpisałeś żadnej wartości!')
|
|
} else {
|
|
console.log('Twój imię to: ' + val[0].toUpperCase() + val.slice(1) );
|
|
}
|
|
</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="/logowanie/">Logowanie</a>
|
|
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a>
|
|
<li><a class="nav-link" href="/wypisz/">Twoj trening</a>
|
|
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a>
|
|
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a>
|
|
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
</div><br>
|
|
<br><br>
|
|
<br>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<form action="/heheheszki/" method="POST">
|
|
|
|
<td>
|
|
|
|
<select name="rodzaj" style="width: 180px">
|
|
<option>FWB</option>
|
|
<option>ABS</option>
|
|
|
|
|
|
</td>
|
|
<td><input type="text" class="form-control" name="Opis" placeholder="co ile trenngów zwiększać cięzar o 1kg" style="width: 180px"></td>
|
|
<td><input type="text" class="form-control" name="Zdjecie" placeholder="co ile trenngów zwiększać ilość powtórzeń" style="width: 180px"></td>
|
|
<td>
|
|
|
|
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Zatwierdź</button></div></td>
|
|
</form>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-hover">
|
|
|
|
<caption>Twój trening</caption>
|
|
|
|
<thead style="background-color: #999999">
|
|
<tr>
|
|
<th>Ćwiczenie</th>
|
|
<th>Ilość serii</th>
|
|
<th>Ilość powtórzeń</th>
|
|
<th>Ciężar</th>
|
|
<th>Akcja</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<form action="/planer/" method="POST">
|
|
|
|
<td><select name="Nazwa">
|
|
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
|
|
|
|
</select></td>
|
|
<td><select id="Serie" name="Serie">
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
</select></td>
|
|
<td><select name="Powtorzenia" >
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
<option>12</option>
|
|
<option>13</option></select></td>
|
|
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
|
|
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
|
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
|
</form>
|
|
</tr>
|
|
<tr>
|
|
<form action="/planer/" method="POST">
|
|
|
|
<td><select name="Nazwa">
|
|
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
|
|
|
|
</select></td>
|
|
<td><select name="Serie">
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
</select></td>
|
|
<td><select name="Powtorzenia" >
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
<option>12</option>
|
|
<option>13</option></select></td>
|
|
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
|
|
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
|
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
|
</form>
|
|
</tr>
|
|
<tr>
|
|
<form action="/planer/" method="POST">
|
|
|
|
<td><select name="Nazwa">
|
|
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
|
|
|
|
</select></td>
|
|
<td><select name="Serie">
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
</select></td>
|
|
<td><select name="Powtorzenia" >
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
<option>12</option>
|
|
<option>13</option></select></td>
|
|
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
|
|
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
|
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
|
</form>
|
|
</tr>
|
|
<tr>
|
|
<form action="/planer/" method="POST">
|
|
|
|
<td><select name="Nazwa">
|
|
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
|
|
|
|
</select></td>
|
|
<td><select name="Serie">
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
</select></td>
|
|
<td><select name="Powtorzenia" >
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
<option>12</option>
|
|
<option>13</option></select></td>
|
|
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
|
|
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
|
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
|
</form>
|
|
</tr>
|
|
<tr>
|
|
<form action="/planer/" method="POST">
|
|
|
|
<td><select name="Nazwa">
|
|
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
|
|
|
|
</select></td>
|
|
<td><select name="Serie">
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
</select></td>
|
|
<td><select name="Powtorzenia" >
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
<option>12</option>
|
|
<option>13</option></select></td>
|
|
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
|
|
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
|
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
|
</form>
|
|
</tr>
|
|
<tr>
|
|
<form action="/planer/" method="POST">
|
|
|
|
<td><select name="Nazwa">
|
|
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
|
|
|
|
</select></td>
|
|
<td><select name="Serie">
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
</select></td>
|
|
<td><select name="Powtorzenia" >
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
<option>12</option>
|
|
<option>13</option></select></td>
|
|
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
|
|
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
|
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
|
</form>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div><!--
|
|
<div id="hst0" style="display: none"><div class="table-responsive">
|
|
<table class="table table-hover">
|
|
|
|
<caption>Twój trening</caption>
|
|
|
|
<thead style="background-color: #999999">
|
|
<tr>
|
|
<th>Ćwiczenie</th>
|
|
<th>Ilość serii</th>
|
|
<th>Ilość powtórzeń</th>
|
|
<th>Ciężar</th>
|
|
<th>Akcja</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<form action="/planer/" method="POST">
|
|
|
|
<td><select name="Nazwa">
|
|
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
|
|
|
|
</select></td>
|
|
<td><input type="text" class="form-control" name="Serie" ></td>
|
|
<td><input type="text" class="form-control" name="Powtorzenia" ></td>
|
|
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
|
|
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
|
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Podgląd</button></div></td>
|
|
</form>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<a href="javascript:dodawanieCwiczenia('hst0');"><button type="submit" class="btn btn-default" style="margin-bottom: 50px" >Dodaj ćwiczenie</button></a>
|
|
|
|
-->
|
|
|
|
<div class="container footer">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<p>Wszystkie prawa zastrzeżone. <strong>mój</strong>produkt © 2015<br>
|
|
<small>kontakt@mojprodukt.pl</small>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
|
</body>
|
|
</html>
|
|
{{ end }} |