mlanthaler: Added short description of OpenID to the login form.

Please update also the stylesheet "openid_login.css" in mysite/css (it's not under version control, so I'll post the content of the file here). 

-- openid_login.css -- 
#OpenIDLoginForm_LoginForm_OpenIDURL { 

background: url(../../sapphire/images/openid-small.gif) no-repeat; 
background-color: #fff; 
background-position: 0 50%; 
color: #000; 
padding-left: 18px; 
width: 284px; 

} 

#OpenIDDescription { 

margin-bottom: 2em; 

} 

#OpenIDDescription p { 

font-size: 1em; 
line-height: 1.3em; 
margin-top: 0 !important; 

} 
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42095 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 15:35:13 +00:00
parent 84aef28d55
commit b604ed0a31

View File

@ -55,6 +55,10 @@ class OpenIDLoginForm extends LoginForm {
} else {
if(!$fields) {
$fields = new FieldSet(
new LiteralField("OpenIDDescription", '
<div id="OpenIDDescription"><p>OpenID is an Internet-wide identity system
that allows you to sign in to many websites with a single account.
For more information visit <a href="http://openid.net">openid.net</a>.</p></div>'),
new HiddenField("AuthenticationMethod", null,
$this->authenticator_class, $this),
new TextField("OpenIDURL", "OpenID URL",