From: Michael Tremer Date: Sun, 29 May 2022 14:42:04 +0000 (+0000) Subject: templates: Redesign login X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b37b8c550b49bca552a2f57f726455117c9701e7;p=pbs.git templates: Redesign login Signed-off-by: Michael Tremer --- diff --git a/src/static/css/site.scss b/src/static/css/site.scss index 8c514eff..1ca2c237 100644 --- a/src/static/css/site.scss +++ b/src/static/css/site.scss @@ -71,7 +71,7 @@ $foundation-palette: ( // Helpers @include foundation-float-classes; -// @include foundation-flex-classes; +@include foundation-flex-classes; @include foundation-visibility-classes; // @include foundation-prototype-classes; diff --git a/src/templates/login.html b/src/templates/login.html index ce8d9ca3..0949b105 100644 --- a/src/templates/login.html +++ b/src/templates/login.html @@ -1,41 +1,27 @@ {% extends "base.html" %} -{% block title %}{{ _("Login") }}{% end block %} +{% block title %}{{ _("Log In") }}{% end block %} -{% block body %} -
-
-

{{ _("Login") }}

-
-
+{% block container %} +
+
+
+

{{ _("Log In") }}

+ + {% if failed %} +

{{ _("Login failed") }}

+ {% end %} + +
+ {% raw xsrf_form_html() %} - {% if failed %} -
-
-
-

{{ _("Login failed!") }}

- {{ _("Username and/or password was wrong. Login failed.") }} + + + + + +
- {% end %} -
-
-
- {% raw xsrf_form_html() %} -
- - -
-
- - -
- -
-
-
-
{% end %}