From 8658d03bd8537701a5b0b6e1e0d4778c8827469c Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 19 Jun 2013 02:37:42 +0200 Subject: [PATCH] Move login UI and add error message UI --- public_html/static/style.css | 23 +++++++++++++++++++++++ public_html/templates/layout.tpl | 22 ++++++++++++++++------ 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/public_html/static/style.css b/public_html/static/style.css index c3aaba6..ca30b59 100644 --- a/public_html/static/style.css +++ b/public_html/static/style.css @@ -152,6 +152,29 @@ div.notice-three text-align: right; } +div.error +{ + border: 1px solid #5D0000; + background-color: #E2C6C6; + margin-top: 8px; + margin-bottom: 6px; + font-size: 15px; + padding: 8px 10px; +} + +div.error ul +{ + padding-left: 28px; + margin: 3px 0px; +} + +div.error p +{ + margin: 3px 0px; + font-weight: bold; + font-size: 16px; +} + .login { float: right; diff --git a/public_html/templates/layout.tpl b/public_html/templates/layout.tpl index e72a742..7f35e05 100644 --- a/public_html/templates/layout.tpl +++ b/public_html/templates/layout.tpl @@ -11,12 +11,6 @@

Home

+ {%if isempty|errors == false} +
+

One or more errors occurred:

+
    + {%foreach error in errors} +
  • {%?error}
  • + {%/foreach} +
+
+ {%/if} {%?contents}