From: Thierry Parmentelat Date: Wed, 25 Sep 2013 10:00:22 +0000 (+0200) Subject: form hints are back in business on the registration page X-Git-Tag: myslice-0.2-4~9^2 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=a92f91a1d7c6d35f4ea9ecef8d6a9570265535fd form hints are back in business on the registration page could easily be added to the other forms as well but this would need some moving around (registration.css is wrong) and changes to the layouts (hint takes the available 4 columns remaining on the right of the grid) --- diff --git a/portal/static/css/registration.css b/portal/static/css/registration.css index e41f9e27..1a274a24 100644 --- a/portal/static/css/registration.css +++ b/portal/static/css/registration.css @@ -13,6 +13,19 @@ label.error { font-size: 12px; } -.hint { +.form-hint { display:none; } +/* show up hints when hovering on a the field */ +/* pick a small font to avoid flickering effects */ +div.form-group:hover p.form-hint { + display: block; + color: #FFFFFF; + background: rgba(0, 0, 0, 0.6); + padding: 3px 10px; + font-size: small; + + -moz-border-radius: 7px; + -webkit-border-radius: 7px; + border-radius: 7px; +} diff --git a/portal/templates/registration_view.html b/portal/templates/registration_view.html index dcc239b6..6b416910 100644 --- a/portal/templates/registration_view.html +++ b/portal/templates/registration_view.html @@ -32,15 +32,15 @@
-

Enter your first name

+

Enter your first name

-

Enter your last name

+

Enter your last name

@@ -50,31 +50,31 @@ {% endfor %} -

Please select an authority responsible for vetting your account

+

Please select an authority responsible for vetting your account

-

Enter a valid email address

+

Enter a valid email address

-

Enter password

+

Enter password

-

Retype the password

+

Retype the password

@@ -83,16 +83,16 @@ -

Genkey: Account Delegation Automatic (Recommended)

+

Genkey: Account Delegation Automatic (Recommended)