summaryrefslogtreecommitdiff
path: root/allotter/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'allotter/forms.py')
-rw-r--r--allotter/forms.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/allotter/forms.py b/allotter/forms.py
index 54210cc..b3a9039 100644
--- a/allotter/forms.py
+++ b/allotter/forms.py
@@ -94,11 +94,17 @@ class UserDetailsForm(forms.Form):
def __init__(self, user, *args, **kwargs):
self.user = user
+ self.helper = FormHelper()
+ self.helper.form_id = 'id-detailsform'
+ self.helper.form_method = 'post'
+ self.helper.form_class = 'form-horizontal'
+ self.helper.form_action = "/allotter/details/"
+ self.helper.add_input(Submit('submit', 'Submit'))
super(UserDetailsForm, self).__init__(*args, **kwargs)
- email = forms.EmailField(label="Email Address",
+ email = forms.EmailField(label="Email Address", widget=forms.TextInput(attrs={"placeholder":"john@example.com",}),
help_text="Enter a valid email id if you have any.")
- phone_number = forms.IntegerField(label="Phone number",
+ phone_number = forms.IntegerField(label="Phone number", widget=forms.TextInput(attrs={"placeholder":"9876543210",}),
help_text="10 digit number with code")