parent
5350952bd3
commit
b02b80c612
|
After Width: | Height: | Size: 950 B |
@ -0,0 +1,131 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Chyba!</title>
|
||||||
|
<style>:root
|
||||||
|
{
|
||||||
|
--dark: #1E1B18;
|
||||||
|
--light: #E3E7F1;
|
||||||
|
--side: #E3E7F1;
|
||||||
|
--main: #7391C8;
|
||||||
|
--main-dark: #52688F;
|
||||||
|
--main-highlight: #31476d;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
|
color: var(--dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: var(--main-dark);
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
padding: 10px 15px;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 16px;
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: var(--main-highlight);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
display: flex;
|
||||||
|
background-color: var(--main-dark);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header #logo {
|
||||||
|
text-align: center;
|
||||||
|
flex-basis: 20%;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav {
|
||||||
|
display: flex;
|
||||||
|
flex-basis: 70%;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
header #user {
|
||||||
|
flex-basis: 10%;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
header #user a {
|
||||||
|
flex-basis: 100%;
|
||||||
|
text-align: center;
|
||||||
|
background-color: var(--main);
|
||||||
|
color: var(--dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
header #user a:hover {
|
||||||
|
background-color: var(--main-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
header a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--light);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1em;
|
||||||
|
line-height: 1.4em;
|
||||||
|
padding: 1.4em 2em;
|
||||||
|
transition: 300ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
header a:hover {
|
||||||
|
background-color: var(--main-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--light);
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
height: calc(100vh - 4.2em);
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: var(--light);
|
||||||
|
font-size: 1.6em;
|
||||||
|
margin: 2em 0 0;
|
||||||
|
flex-basis: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: var(--side);
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header id="mainHeader">
|
||||||
|
<div id="logo">
|
||||||
|
<a href="/">EasyCharts</a>
|
||||||
|
</div>
|
||||||
|
<div id="user">
|
||||||
|
<a href="/users/login">Přihlásit</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<h1>Chyba!</h1>
|
||||||
|
<section>
|
||||||
|
<p>
|
||||||
|
Hledanou stránku nebylo možné najít. Zkontrolujte URL nebo se vraťe na
|
||||||
|
<a href="/">domovskou stránku</a>.
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
</body></html>
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
List
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
{{ parent() }}
|
||||||
|
<main>
|
||||||
|
<div id="myCharts">
|
||||||
|
<h1>Grafy</h1>
|
||||||
|
<a href="{{ path('charts_create') }}" id="createChart">Vytvořit nový graf</a>
|
||||||
|
<div id="myChartList">
|
||||||
|
{% for chart in charts %}
|
||||||
|
<span>
|
||||||
|
<a href={{ chart.id ~ "/edit" }} id="editChart">{{ chart.name }}</a>
|
||||||
|
<a href={{ chart.id ~ "/remove" }} id="removeChart">Smazat</a>
|
||||||
|
</span>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
{% endblock %}
|
||||||
@ -1,11 +1,15 @@
|
|||||||
<header id="mainHeader">
|
<header id="mainHeader">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
<a href={{ path('homepage') }}>EasyCharts</a>
|
<a href={{ path('homepage') }} id="homepageLink">Index</a>
|
||||||
</div>
|
</div>
|
||||||
<nav>
|
<nav>
|
||||||
<a href={{ path('charts_list') }}>Charts</a>
|
<a href={{ path('charts_list') }} id="chartsLink">Charts</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div id="user">
|
<div id="user">
|
||||||
<a href={{ path('users_create') }}>Login</a>
|
{% if app.user %}
|
||||||
|
<a href={{ path('users_edit', {id: app.user.id} ) }}>{{ app.user.email }}</a>
|
||||||
|
{% else %}
|
||||||
|
<a href={{ path('users_login') }}>Přihlásit</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@ -1,16 +0,0 @@
|
|||||||
{% extends 'base.html.twig' %}
|
|
||||||
|
|
||||||
{% block title %}
|
|
||||||
List
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
{{ parent() }}
|
|
||||||
<main>
|
|
||||||
<ul>
|
|
||||||
{% for chart in charts %}
|
|
||||||
<li><a href={{ chart.id ~ "/edit" }}>{{ chart.name }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</main>
|
|
||||||
{% endblock %}
|
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
Upravit profil
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
{{ parent() }}
|
||||||
|
<main>
|
||||||
|
<div class="loginDiv">
|
||||||
|
<h1>Uživatel: <strong>{{ app.user.email }}</strong></h1>
|
||||||
|
{{ form_start(form) }}
|
||||||
|
{{ form_row(form.password) }}
|
||||||
|
|
||||||
|
<button type="submit">Změnit heslo</button>
|
||||||
|
{{ form_end(form, {'render_rest': false}) }}
|
||||||
|
<a id="logoutBtn" href="{{ path('users_logout') }}">Odhlásit se</a>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
{% endblock %}
|
||||||
Loading…
Reference in new issue