Commit faccc627 authored by Jan Čermák's avatar Jan Čermák

login page UI

parent 4a89a3c3
......@@ -158,21 +158,21 @@ body, html
a
padding-top: 0.25em
label
display: inline-block
font-weight: bold
width: 10em
input, textarea, select
background-color: $background-color
border: 1px solid $stroke-color
padding: 0.5em
width: 25em
.wizard-form, .config-form
div
padding: 0.25em 0
label
display: inline-block
font-weight: bold
width: 10em
input, textarea, select
background-color: $background-color
border: 1px solid $stroke-color
padding: 0.5em
width: 25em
.field-valid, .field-invalid
display: inline-block
height: 22px
......@@ -214,6 +214,26 @@ body, html
right: 1em
top: 1em
/* -------------------------------------------------------------------------
/* Login page
#login-page
padding-top: 2em
text-align: center
label
display: none
input
height: 3em
line-height: 3em
width: 25em
button
font-size: 100%
height: 3em
line-height: 3em
/* -------------------------------------------------------------------------
/* Wizard
#wizard-header
......
%rebase _layout **locals()
<h1>Foris</h1>
<h2>roscesňýk</h2>
<div id="login-page">
<h1><img src="{{ static("img/logo-turris.png") }}" alt="{{ _("Project:Turris") }}"></h1>
%if user_authenticated():
<a href="{{ url("logout") }}">odhlásit</a>
%else:
<form action="{{ request.fullpath }}" method="POST">
<label for="field-password">{{ _("Password") }}</label>
<input id="field-password" type="password" name="password">
<button class="button" type="submit">{{ _("Log in") }}</button>
</form>
%end
<ul>
<li><a href="{{ url("uci_index") }}">about:config</a></li>
<li><a href="{{ url("wizard_index") }}">kuzelňik</a></li>
<li><a href="{{ url("config_index") }}">dlaší natavení</a></li>
</ul>
\ No newline at end of file
%if user_authenticated():
<a href="{{ url("logout") }}">{{ _("Log out") }}</a>
%else:
<form action="{{ request.fullpath }}" method="POST">
<label for="field-password">{{ _("Password") }}</label>
<input id="field-password" type="password" name="password" placeholder="{{ _("Password") }}">
<button class="button" type="submit">{{ _("Log in") }}</button>
</form>
%end
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment