[cpif] r174 - in trunk/frontend-web: . skins/default
svn at argo.es
svn at argo.es
Wed Jun 20 23:52:34 CEST 2007
Author: alvaro
Date: Wed Jun 20 23:52:32 2007
New Revision: 174
Log:
Corregido el Skin para OpenID (con el logo)
Normalizado el nick en el modulo de OpenID en el
frontend.
Modified:
trunk/frontend-web/skins/default/form_login.html
trunk/frontend-web/skins/default/form_login_err.html
trunk/frontend-web/skins/default/header.html
trunk/frontend-web/url_LOGIN.py
Modified: trunk/frontend-web/skins/default/form_login.html
==============================================================================
--- trunk/frontend-web/skins/default/form_login.html (original)
+++ trunk/frontend-web/skins/default/form_login.html Wed Jun 20 23:52:32 2007
@@ -1,8 +1,10 @@
<div id="form">
<form action="%(link_form_login)s" method="post" enctype="multipart/form-data">
- <label for="usuario">Usuario: </td><td><input type="text" name="usuario" size="25" value="" /></label><br />
- <label for="password">Clave: </td><td><input type="password" name="clave" size="25" value="" /></label><br />
- <label for="OpenID">OpenID: </td><td><input type="text" name="OpenID" size="65" value="" /></label><br />
+ <label for="usuario">Usuario:</label> <input type="text" name="usuario" size="35" value="" /><br />
+ <label for="password">Clave:</label> <input type="password" name="clave" size="35" value="" /><br />
+ <p class="center">
+ <label for="OpenID">OpenID:</label> <input type="text" class="OpenID" name="OpenID" size="50" value="" /><br />
+ </p>
<input class="form-element" type="submit" name="submit" value="Log In"/>
</form>
</div>
Modified: trunk/frontend-web/skins/default/form_login_err.html
==============================================================================
--- trunk/frontend-web/skins/default/form_login_err.html (original)
+++ trunk/frontend-web/skins/default/form_login_err.html Wed Jun 20 23:52:32 2007
@@ -1,9 +1,11 @@
<h2>Error, nombre de usuario y/o contraseña inválidos</h2>
<div id="form">
<form action="%(link_form_login)s" method="post" enctype="multipart/form-data">
- <label for="usuario">Usuario: </td><td><input type="text" name="usuario" size="25" value="" /></label><br />
- <label for="password">Clave: </td><td><input type="password" name="clave" size="25" value="" /></label><br />
- <label for="OpenID">OpenID: </td><td><input type="text" name="OpenID" size="65" value="" /></label><br />
+ <label for="usuario">Usuario:</label> <input type="text" name="usuario" size="35" value="" /><br />
+ <label for="password">Clave:</label> <input type="password" name="clave" size="35" value="" /><br />
+ <p class="center">
+ <label for="OpenID">OpenID:</label> <input type="text" class="OpenID" name="OpenID" size="50" value="" /><br />
+ </p>
<input class="form-element" type="submit" name="submit" value="Log In"/>
</form>
</div>
Modified: trunk/frontend-web/skins/default/header.html
==============================================================================
--- trunk/frontend-web/skins/default/header.html (original)
+++ trunk/frontend-web/skins/default/header.html Wed Jun 20 23:52:32 2007
@@ -94,19 +94,27 @@
}
#form, #form-inline {
background:#ffffff;
+ text-align:right;
margin:0 3px 0 3px;
padding: 1em 1em 1em 1em ;
}
#form form, #form-inline form {
display:block;
width:60%%;
- text-align:right;
}
#form form textarea, #form form input, #form-inline form input, #form-inline textarea {
- margin: 0.5em 0 0 0;
+ margin: 0.5em 0 0 0px;
padding: 0.2em;
border:1px solid;
background:#f1f1f1;
+ }
+ #form form label {
+ text-align:right;
+ }
+ #form form .OpenID {
+ background: #f1f1f1 url(http://openid.net/login-bg.gif) center left no-repeat !important;
+ color: #000;
+ padding-left: 20px !important;
}
#calendario {
Modified: trunk/frontend-web/url_LOGIN.py
==============================================================================
--- trunk/frontend-web/url_LOGIN.py (original)
+++ trunk/frontend-web/url_LOGIN.py Wed Jun 20 23:52:32 2007
@@ -27,7 +27,7 @@
elif openid_support and usuario_form and OpenID_form:
@monitor
def get_openid(conn,usuario,OpenID) :
- OpenIDs=conn.get_root()["usuarios"]["usuarios"].get(usuario)
+ OpenIDs=conn.get_root()["usuarios"]["usuarios"].get(database.normaliza_nick(usuario))
if not OpenIDs : return None
OpenIDs=OpenIDs["OpenID"]
if OpenID in OpenIDs : return True
More information about the cpif
mailing list