Commit 02d69199 authored by Clément OUDOT's avatar Clément OUDOT

Add if case to display error message block (#647)

parent 662eebb2
......@@ -21,7 +21,9 @@
<h1><lang en="Open your SSO session" fr="Ouvrir une session SSO" /></h1>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p><span class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></span></p>
</TMPL_IF>
<!-- tabs -->
<div id="authMenu">
......@@ -119,7 +121,9 @@
<div id="content-right">
<h1><lang en="Open your SSO session" fr="Ouvrir une session SSO" /></h1>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p><span class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></span></p>
</TMPL_IF>
<form action="#" method="post" class="login">
<TMPL_VAR NAME="HIDDEN_INPUTS">
<input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
......@@ -147,7 +151,9 @@
<div id="content-right">
<h1><lang en="Open your SSO session" fr="Ouvrir une session SSO" /></h1>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p><span class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></span></p>
</TMPL_IF>
<form action="#" method="post" class="login">
<TMPL_VAR NAME="HIDDEN_INPUTS">
<input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
......@@ -175,7 +181,9 @@
<div id="content-right">
<h1><lang en="Open your SSO session" fr="Ouvrir une session SSO" /></h1>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p><span class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></span></p>
</TMPL_IF>
<form action="#" method="post" class="login">
<TMPL_VAR NAME="HIDDEN_INPUTS">
<input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
......@@ -203,7 +211,9 @@
<div id="content-right">
<h1><lang en="Open your SSO session" fr="Ouvrir une session SSO" /></h1>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p><span class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></span></p>
</TMPL_IF>
<form action="#" method="post" class="login <TMPL_VAR NAME="module">">
<TMPL_VAR NAME="HIDDEN_INPUTS">
<input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
......@@ -251,7 +261,9 @@
<lang en="Password change" fr="Changement de mot de passe" />
</div>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></p>
</TMPL_IF>
<TMPL_INCLUDE NAME="password.tpl">
</div>
......@@ -264,7 +276,9 @@
<lang en="SSO session inactive" fr="Session SSO inactive" />
</div>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></p>
</TMPL_IF>
<TMPL_IF NAME="MSG">
<div id="content-all-info">
<TMPL_VAR NAME="MSG">
......@@ -283,7 +297,9 @@
<lang en="Close your SSO session" fr="Fermer votre Session SSO" />
</div>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></p>
</TMPL_IF>
<p>
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="LOGOUT_URL">" class="negative"><lang en="Logout" fr="Se d&eacute;connecter"/></a>
</p>
......
......@@ -7,7 +7,9 @@
<lang en="Forgot your password?" fr="Mot de passe oubli&eacute; ?"/>
</div>
<hr class="solid" />
<TMPL_IF NAME="AUTH_ERROR">
<p class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></p>
</TMPL_IF>
<TMPL_IF NAME="DISPLAY_FORM">
<form action="#" method="post" class="login">
......
......@@ -2,12 +2,13 @@
<div id="content">
<div id="content-all">
<TMPL_IF NAME="AUTH_ERROR">
<div class="title">
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-ok.png" />
<TMPL_VAR NAME="AUTH_ERROR">
</div>
<hr class="solid" />
</TMPL_IF>
<p>
<span class="text-error"><lang en="Connected as" fr="Connect&eacute; en tant que " />: <u><TMPL_VAR NAME="AUTH_USER"></u></span>
</p>
......
......@@ -7,8 +7,10 @@
</div>
<div id="content-right">
<TMPL_IF NAME="AUTH_ERROR">
<p class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></p>
<TMPL_IF NAME="ID">
</TMPL_IF>
<TMPL_IF NAME="ID">
<p><lang en="Your identity is" fr="Votre identit&eacute; est&nbsp;"/>:</p>
<p><TMPL_VAR NAME="ID"></p>
</TMPL_IF>
......
......@@ -2,7 +2,9 @@
<div id="logincontent">
<TMPL_IF NAME="AUTH_ERROR">
<div class="message <TMPL_VAR NAME="AUTH_ERROR_TYPE">"><ul><li><TMPL_VAR NAME="AUTH_ERROR"></li></ul></div>
</TMPL_IF>
<div class="loginlogo"></div>
<TMPL_IF AUTH_LOOP>
......
......@@ -2,7 +2,9 @@
<div id="mailcontent">
<TMPL_IF NAME="AUTH_ERROR">
<div class="message <TMPL_VAR NAME="AUTH_ERROR_TYPE">"><ul><li><TMPL_VAR NAME="AUTH_ERROR"></li></ul></div>
</TMPL_IF>
<div class="loginlogo"></div>
......
......@@ -2,7 +2,9 @@
<div id="menucontent">
<TMPL_IF NAME="AUTH_ERROR">
<div class="message <TMPL_VAR NAME="AUTH_ERROR_TYPE">"><ul><li><TMPL_VAR NAME="AUTH_ERROR"></li></ul></div>
</TMPL_IF>
<div id="menu">
......
......@@ -2,7 +2,9 @@
<div id="logincontent">
<TMPL_IF NAME="AUTH_ERROR">
<div class="message <TMPL_VAR NAME="AUTH_ERROR_TYPE">"><ul><li><TMPL_VAR NAME="AUTH_ERROR"></li></ul></div>
</TMPL_IF>
<div class="loginlogo"></div>
......
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