Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christopher M Reffett
go
Commits
fe33ac24
Commit
fe33ac24
authored
Dec 24, 2013
by
Jean Michel Rouly
Browse files
Added a form to process signups.
parent
aa90d8c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/forms.py
View file @
fe33ac24
...
...
@@ -61,3 +61,27 @@ class URLForm( forms.ModelForm ):
'placeholder'
:
'http://'
,
}),
}
class
SignupForm
(
forms
.
Form
):
username
=
forms
.
CharField
(
required
=
True
,
label
=
'Username'
,
max_length
=
30
,
widget
=
forms
.
TextInput
(
attrs
=
{
}),
)
full_name
=
forms
.
CharField
(
required
=
True
,
label
=
'Full Name'
,
max_length
=
100
,
widget
=
forms
.
TextInput
(
attrs
=
{
}),
)
description
=
forms
.
CharField
(
required
=
False
,
label
=
'Description (Optional)'
,
max_length
=
200
,
widget
=
forms
.
Textarea
(
attrs
=
{
}),
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment