mirror of
https://github.com/resources-manager/resources-manager-webui.git
synced 2024-12-21 11:03:59 +01:00
grid-css
This commit is contained in:
parent
aa4c95bd2d
commit
20d98c5e1d
|
@ -11,9 +11,10 @@ body{
|
|||
|
||||
display: grid;
|
||||
grid-template-areas: "header header"
|
||||
"contentFull contentFull"
|
||||
"nav content"
|
||||
"footer footer";
|
||||
grid-template-columns: 20% auto;
|
||||
grid-template-columns: 20em auto;
|
||||
}
|
||||
|
||||
body header {
|
||||
|
@ -26,13 +27,18 @@ body nav {
|
|||
section#main {
|
||||
grid-area: content;
|
||||
}
|
||||
section.overnav{
|
||||
grid-area: contentFull;
|
||||
justify-self: center;
|
||||
|
||||
}
|
||||
body footer {
|
||||
grid-area: footer;
|
||||
}
|
||||
|
||||
form{
|
||||
display: grid;
|
||||
grid-template-columns: 200px 1fr;
|
||||
grid-template-columns: 15em 30em;
|
||||
}
|
||||
form label {
|
||||
grid-column: 1 / 2;
|
||||
|
|
|
@ -11,9 +11,11 @@
|
|||
<body>
|
||||
<header>{% block header %}<h1>Resources booking manager</h1>{% endblock %}</header>
|
||||
<nav></nav>
|
||||
{% block overcontent %}
|
||||
<section id="main">
|
||||
{% block content %}{% endblock %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
<footer></footer>
|
||||
{% block javascripts %}{% endblock %}
|
||||
</body>
|
||||
|
|
|
@ -2,12 +2,14 @@
|
|||
|
||||
{% block title %}Log in{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post">
|
||||
<h2>Please sign in</h2>
|
||||
<label for="inputEmail">Email</label> <input type="email" value="{{ last_username }}" name="email" id="inputEmail" required autofocus>
|
||||
<label for="inputPassword">Password</label> <input type="password" name="password" id="inputPassword" required>
|
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>
|
||||
<input type="submit" value="Sign in"/>
|
||||
</form>
|
||||
{% block overcontent %}
|
||||
<section class="overnav">
|
||||
<form method="post">
|
||||
<h2>Please sign in</h2>
|
||||
<label for="inputEmail">Email</label> <input type="email" value="{{ last_username }}" name="email" id="inputEmail" required autofocus>
|
||||
<label for="inputPassword">Password</label> <input type="password" name="password" id="inputPassword" required>
|
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>
|
||||
<input type="submit" value="Sign in"/>
|
||||
</form>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
{% block title %}Register{% endblock %}
|
||||
{% block header %}<h1>Register a new user</h1>{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
{% block overcontent %}
|
||||
<section class="overnav">
|
||||
{{ form(form) }}
|
||||
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user