[snowy] Theme the Create Account page slightly
- From: Brad Taylor <btaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [snowy] Theme the Create Account page slightly
- Date: Thu, 23 Jul 2009 14:03:54 +0000 (UTC)
commit 5aee2647c03b888e65aefc9676e5aeccfa6075cd
Author: Brad Taylor <brad getcoded net>
Date: Wed Jul 22 16:18:48 2009 -0400
Theme the Create Account page slightly
site_media/css/screen.css | 18 ++++++++++++++++++
users/forms.py | 2 +-
.../templates/registration/registration_form.html | 6 ++++--
3 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/site_media/css/screen.css b/site_media/css/screen.css
index 8bdeab4..dcaa2fb 100644
--- a/site_media/css/screen.css
+++ b/site_media/css/screen.css
@@ -292,3 +292,21 @@ a.link-broken {
a.link-url {
color: #3465A4;
}
+
+table.input-form {
+ border-spacing: 13px;
+}
+
+.input-form label {
+ text-align: left;
+ float: left;
+}
+
+.input-form th {
+ vertical-align: top;
+}
+
+.input-form td {
+ font-size: 0.7em;
+ vertical-align: top;
+}
diff --git a/users/forms.py b/users/forms.py
index cf0608a..ded70df 100644
--- a/users/forms.py
+++ b/users/forms.py
@@ -26,7 +26,7 @@ class RegistrationFormUniqueUser(RegistrationFormUniqueEmail):
Subclass of ``RegistrationFormUniqueEmail`` which verifies usernames
against a blacklist.
"""
- captcha = ReCaptchaField(label=_(u'Word Verification'))
+ captcha = ReCaptchaField(label=_(u'Verify words:'))
username_blacklist = ['about', 'accounts', 'admin', 'api', 'blog',
'contact', 'css', 'friends', 'images', 'index.html',
diff --git a/users/templates/registration/registration_form.html b/users/templates/registration/registration_form.html
index b49195c..c38912d 100644
--- a/users/templates/registration/registration_form.html
+++ b/users/templates/registration/registration_form.html
@@ -2,10 +2,12 @@
{% load i18n %}
+{% block title %}{% trans "Create an account" %} | {{ block.super }}{% endblock %}
+
{% block content %}
<h1>{% trans "Create an account" %}</h1>
<form method='POST'>
- <table class="form-field">
+ <table class="input-form">
<tbody>
{{ form.as_table }}
</tbody>
@@ -13,7 +15,7 @@
<tr>
<th></th>
<td>
- <input method="submit" type="submit" value="Create Account"/>
+ <input method="submit" type="submit" value="{% trans "Create Account" %}"/>
</td>
</tr>
</tfoot>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]