Permalink
Browse files

Drop optional address fields.

Signed-off-by: Chris Lamb <lamby@debian.org>
  • Loading branch information...
1 parent 2fa44b1 commit 416445f23f64aac3b1a361977345cee17cea1f06 @lamby lamby committed with Sep 27, 2012
Showing with 0 additions and 41 deletions.
  1. +0 −6 src/librement/registration/forms.py
  2. +0 −35 src/templates/registration/view.html
@@ -35,12 +35,6 @@ class Meta:
fields = (
'account_type',
'organisation',
- 'address_1',
- 'address_2',
- 'city',
- 'region',
- 'zipcode',
- 'country',
)
def clean_email(self):
@@ -94,41 +94,6 @@
</div>
</div>
- <div class="control-group">
- <label class="control-label">Address (optional)</label>
- <div class="controls">
- <input type="text" id="{{ form.address_1.id_for_label }}" name="{{ form.address_1.html_name }}" placeholder="Address" value="{{ form.address_1.value|default:"" }}">
- <span class="help-inline">
- {% for x in form.errors.address_1 %}{{ x }}{% endfor %}
- </span>
- <br>
- <br>
- <input type="text" id="{{ form.address_2.id_for_label }}" name="{{ form.address_2.html_name }}" placeholder="Address" value="{{ form.address_2.value|default:"" }}">
- <span class="help-inline">
- {% for x in form.errors.address_2 %}{{ x }}{% endfor %}
- </span>
- <br>
- <br>
- <input type="text" id="{{ form.city.id_for_label }}" name="{{ form.city.html_name }}" placeholder="City" value="{{ form.city.value|default:"" }}">
- <span class="help-inline">
- {% for x in form.errors.city %}{{ x }}{% endfor %}
- </span>
- <br>
- <br>
- <input type="text" id="{{ form.region.id_for_label }}" name="{{ form.region.html_name }}" placeholder="State/region" value="{{ form.region.value|default:"" }}">
- <span class="help-inline">
- {% for x in form.errors.region %}{{ x }}{% endfor %}
- </span>
- <br>
- <br>
- <input type="text" id="{{ form.zipcode.id_for_label }}" name="{{ form.zipcode.html_name }}" placeholder="Zipcode" value="{{ form.zipcode.value|default:"" }}">
- <span class="help-inline">
- {% for x in form.errors.zipcode %}{{ x }}{% endfor %}
- </span>
- </div>
- </div>
-
-
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary">Register</button>

0 comments on commit 416445f

Please sign in to comment.