From 3b5ef3b0a88247eeafeee878de528aad71f9fd4b Mon Sep 17 00:00:00 2001 From: maxbr Date: Fri, 19 Aug 2016 17:10:31 +0200 Subject: Split the dashboard into different apps, add tests JIRA: RELENG-12 Signed-off-by: maxbr --- tools/pharos-dashboard/account/forms.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/pharos-dashboard/account/forms.py (limited to 'tools/pharos-dashboard/account/forms.py') diff --git a/tools/pharos-dashboard/account/forms.py b/tools/pharos-dashboard/account/forms.py new file mode 100644 index 00000000..7893867f --- /dev/null +++ b/tools/pharos-dashboard/account/forms.py @@ -0,0 +1,17 @@ +import django.forms as forms +import pytz as pytz + +from registration.forms import RegistrationForm as BaseRegistrationForm + + +class AccountSettingsForm(forms.Form): + fields = ['first_name', 'last_name', 'email', 'company', 'ssh_public_key', 'pgp_public_key', + 'timezone'] + + first_name = forms.CharField(max_length=30) + last_name = forms.CharField(max_length=30) + email = forms.EmailField() + company = forms.CharField(max_length=30) + ssh_public_key = forms.CharField(max_length=2048, widget=forms.Textarea) + pgp_public_key = forms.CharField(max_length=2048, widget=forms.Textarea) + timezone = forms.ChoiceField(choices=[(x, x) for x in pytz.common_timezones], initial='UTC') \ No newline at end of file -- cgit 1.2.3-korg