WU/templates/userHome.html

181 lines
5.9 KiB
HTML
Raw Normal View History

2018-11-27 15:48:22 +01:00
<!DOCTYPE html>
<!--<html lang="en">-->
<html lang="pl-PL">
<head>
<meta charset="UTF-8">
<title>Python Flask App</title>
2018-12-12 13:23:16 +01:00
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
2018-11-27 15:48:22 +01:00
<link rel="stylesheet" type="text/css" href="signup.css">
<!-- <link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet"> -->
<link href="http://getbootstrap.com/examples/jumbotron-narrow/jumbotron-narrow.css" rel="stylesheet">
<link href="../static/css/signup.css" rel="stylesheet">
2018-11-28 01:38:57 +01:00
<link rel="stylesheet" href="../static/css/calendar.css">
<style>
table, td, th {
border: 1px solid;
text-align: left;
}
table {
border-collapse: collapse;
/*width: 100%;*/
}
th, td {
padding: 5px;
}
ul {list-style-type: none;}
body {font-family: Verdana, sans-serif;}
/* Month header */
.month {
/*padding: 70px 25px;*/
width: 100%;
background: #1abc9c;
text-align: center;
}
/* Month list */
.month ul {
margin: 0;
padding: 0;
}
.month ul li {
color: white;
font-size: 20px;
text-transform: uppercase;
letter-spacing: 3px;
}
/* Previous button inside month header */
.month .prev {
float: left;
padding-top: 10px;
}
/* Next button */
.month .next {
float: right;
padding-top: 10px;
}
/* Weekdays (Mon-Sun) */
.weekdays {
margin: 0;
padding: 10px 0;
background-color:#ddd;
}
.weekdays li {
display: inline-block;
width: 13.6%;
color: #666;
text-align: center;
}
/* Days (1-30) */
.days {
padding: 10px 0;
background: cyan;
margin: 0;
}
.days li {
list-style-type: none;
display: inline-block;
width: 13.6%;
text-align: center;
margin-bottom: 5px;
font-size:12px;
color: #777;
}
/* Highlight the "current" day */
.days li .active {
padding: 5px;
background: #1abc9c;
color: white !important
}
</style>
2018-11-27 15:48:22 +01:00
</head>
<body>
<div class="container">
<div class="header">
<nav>
<ul class="nav nav-pills pull-left">
2018-12-12 14:01:30 +01:00
<li><img src="/static/logo.jpg" alt="Logo" height="150" width="150" border="5" style="padding: 25px;"></li>
2018-11-27 15:48:22 +01:00
<!--<form><input type="button" value="Back" onClick="history.go(-1);return true;"></form>-->
<!--<li role="presentation" class="active"><input type="button" value="Back" onClick="history.go(-1);return true;">
</li>-->
<!--<li role="presentation" class="active"><form action="http://google.com"><input type="button" value="Wstecz" onClick="history.go(-1);return true;"></form></li>-->
2018-12-12 14:01:30 +01:00
<!-- <li role="presentation" class="active"><a href="userHomeENG">ENG</a> -->
<!-- </li> -->
2018-11-27 15:48:22 +01:00
</ul>
<ul class="nav nav-pills pull-right">
<li role="presentation" class="active"><a href="/logout">Wyloguj</a>
</li>
</ul>
</nav>
<h3 class="text-muted"><center>Python Flask</center></h3>
</div>
2018-11-28 01:38:57 +01:00
<div class="jumbotron" style="height: 550px;">
<h1>Witaj w domu {{user}}!</h1>
<div class="col-xs-8">
2018-12-11 20:57:16 +01:00
<!-- <iframe src="https://calendar.google.com/calendar/embed?src=micik220@gmail.com" style="border-width:0" width="500" height="350" frameborder="0" scrolling="no"></iframe> -->
<iframe src="{{ calendar_src }}" style="border-width:0" width="500" height="350" frameborder="0" scrolling="no"></iframe>
2018-11-28 01:38:57 +01:00
</div>
2019-01-09 12:48:07 +01:00
<div class="col-xs-4">
2018-11-27 15:48:22 +01:00
<p class="lead"></p>
2018-11-28 01:38:57 +01:00
<p>
2018-12-11 20:57:16 +01:00
<!-- <a class="btn btn-lg btn-success" href="#" role="button">Moje zajęcia</a> -->
<!-- <a class="btn btn-lg btn-success" href="#" role="button">Test</a> -->
<!-- <a class="btn btn-lg btn-success" href="#" role="button">Wyniki</a> -->
<a class="btn btn-lg btn-success" href="toAddEvent" role="button">Dodaj wydarzenie</a>
2018-12-19 01:54:56 +01:00
<a class="btn btn-lg btn-success" href="chat" role="button" style="margin-top: 5px;">Czat grupowy</a>
<!-- <a class="btn btn-lg btn-success" href="toResources" role="button" style="margin-top: 5px;">Dodaj materiały</a> -->
<a class="btn btn-lg btn-success" href="toResources" role="button" style="margin-top: 5px;">Podejrzyj materiały</a>
2019-01-09 12:48:07 +01:00
<a class="btn btn-lg btn-success" href="stream" role="button" style="margin-top: 5px;">Uruchom testowy stream</a>
{% if session['role'] == 'admin' %}
{% if test %}
<form class="form-signin" action="/end_test" method="post">
<input class="btn btn-lg btn-success" type="submit" value="Zakończ trwający test"></input>
</form>
{% else %}
<form class="form-signin" action="/create_test" method="post">
<input type="text" name="inputTestName" id="inputTestName" class="form-control" placeholder="Wpisz nazwę testu" required>
<input type="text" name="inputUsers" id="inputUsers" class="form-control" placeholder="Podaj loginy uczestników" required>
<input class="btn btn-lg btn-success" type="submit" value="Utwórz test"></input>
</form>
{% endif %}
{% elif session['role'] == 'user' %}
<form class="form-signin" action="/show_test" method="post">
<input class="btn btn-lg btn-success" type="submit" value="Rozwiąż test"></input>
</form>
{% endif %}
2018-12-03 01:52:04 +01:00
<!-- <form action="ch"> -->
<!-- <input type="submit" value="Wejdź na czat grupowy" /> -->
<!-- </form> -->
2018-11-28 01:38:57 +01:00
</p>
2019-01-09 12:48:07 +01:00
</div>
2018-11-27 15:48:22 +01:00
</div>
2018-11-28 01:38:57 +01:00
2018-12-03 01:52:04 +01:00
2018-11-27 15:48:22 +01:00
<footer class="footer">
<p>&copy; UAM 2018</p>
</footer>
</div>
</body>
</html>