From 276f97836cf26634f7e3dc4c4bc8d0a47cbbe1b4 Mon Sep 17 00:00:00 2001
From: Dominique Fournier
Date: Thu, 1 Sep 2016 10:54:17 +0000
Subject: [PATCH] auth : the alert box is now more user friendly
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3018 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
---
auth.php | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/auth.php b/auth.php
index a022e59..8d71994 100644
--- a/auth.php
+++ b/auth.php
@@ -54,7 +54,8 @@ class auth
padding-top: 10px;
margin-bottom: 20px;
background-color:white;}\n";
- $res .= "input[type='submit'] {
+ $res .= "input[type='submit'], a {
+ text-decoration: none;
display: inline-block;
padding: 10px 32px;
color: #fff;
@@ -65,8 +66,14 @@ class auth
font-weight: 400;
vertical-align: middle;
border-radius : 4px;
- height: 40px;
- margin-top : 10px;
+ margin-bottom : 20px;
+ }\n";
+ $res .= ".alert {
+ color: #a94442;
+ background-color: #f2dede;
+ border: 1px solid #ebccd1;
+ border-radius: 4px;
+ padding: 15px;
}\n";
$res .= "h1 { color: #bbb }\n";
$res .= "h2 { padding-top: 0px; padding-bottom: 30px;}\n";
@@ -109,13 +116,17 @@ class auth
"Already sign in");
$res .= "\n";
if (is_string ($alreadyAuth))
+ {
+ $res .= "".dgettext ("domframework", "With login:")."
\n";
$res .= " $alreadyAuth
\n";
+ }
$res .= " ".
- dgettext ("domframework", "Click here to logout")."
\n";
+ dgettext ("domframework", "Logout")."\n";
if ($url !== "")
- $res .= "".
+ $res .= "".
dgettext ("domframework", "Go back to the calling page").
- "
\n";
+ "\n";
+ $res .="
\n";
}
if ($message !== "" && $message !== null)
$res .= " $message
\n";