add some new signup questions
parent
3c4eabd42e
commit
08ff82094d
|
@ -53,31 +53,65 @@ class TownieForm(Form):
|
||||||
validators=(validate_username,),
|
validators=(validate_username,),
|
||||||
help_text='lowercase and no spaces. underscore ok',
|
help_text='lowercase and no spaces. underscore ok',
|
||||||
label='username')
|
label='username')
|
||||||
|
|
||||||
email = EmailField(
|
email = EmailField(
|
||||||
help_text='only used to message you about your account and nothing else.',
|
help_text='only used to message you about your account and nothing else.',
|
||||||
label='e-mail')
|
label='e-mail')
|
||||||
|
|
||||||
displayname = CharField(
|
displayname = CharField(
|
||||||
validators=(validate_displayname,),
|
validators=(validate_displayname,),
|
||||||
help_text='100% optional. pseudonyms welcome.',
|
help_text='100% optional. pseudonyms welcome.',
|
||||||
label='display name',
|
label='display name',
|
||||||
required=False)
|
required=False)
|
||||||
|
|
||||||
reasons = CharField(
|
reasons = CharField(
|
||||||
widget=Textarea,
|
widget=Textarea,
|
||||||
required=False,
|
required=True,
|
||||||
label='what interests you about tilde.town?',
|
label='what interests you about tilde.town?',
|
||||||
help_text='This is a totally optional place for you to tell us what excites you about getting a ~ account. This is mainly just so we can all feel warm fuzzies.')
|
help_text="""
|
||||||
|
What about this intentional community intrigues you and makes you want to be a part of it?
|
||||||
|
""".strip())
|
||||||
|
|
||||||
|
plans = CharField(
|
||||||
|
widget=Textarea,
|
||||||
|
required=True,
|
||||||
|
label='what sort of things do you want to do on tilde.town?',
|
||||||
|
help_text="""
|
||||||
|
Do you want to socialize? Make something? Learn stuff?
|
||||||
|
""".strip())
|
||||||
|
|
||||||
|
community = CharField(
|
||||||
|
widget=Textarea,
|
||||||
|
required=True,
|
||||||
|
label='what is an intentional community?',
|
||||||
|
help_text="""
|
||||||
|
Just a quick definition is fine, no need for an essay or anything.
|
||||||
|
""".strip())
|
||||||
|
|
||||||
|
socials = CharField(
|
||||||
|
widget=Textarea,
|
||||||
|
required=False,
|
||||||
|
label='where else are you online?',
|
||||||
|
help_text="""Optional, but if you're comfortable sharing with us some links to other online
|
||||||
|
spaces you're in (like twitter, mastodon, neocities, or whatever) we'd love to get to know
|
||||||
|
you when reviewing your application.
|
||||||
|
""".strip())
|
||||||
|
|
||||||
captcha = CaptchaField()
|
captcha = CaptchaField()
|
||||||
|
|
||||||
pubkey = CharField(
|
pubkey = CharField(
|
||||||
widget=Textarea,
|
widget=Textarea,
|
||||||
validators=(validate_pubkey,),
|
validators=(validate_pubkey,),
|
||||||
label='SSH public key',
|
label='SSH public key',
|
||||||
help_text='if this is not a thing you are familiar with, that\'s okay! you can make one <a href="/users/keymachine">here</a> or read <a href="https://tilde.town/wiki/getting-started/ssh.html">our guide</a> to learn more.')
|
help_text='if this is not a thing you are familiar with, that\'s okay! you can make one <a href="/users/keymachine">here</a> or read <a href="https://tilde.town/wiki/getting-started/ssh.html">our guide</a> to learn more.')
|
||||||
|
|
||||||
pubkey_type = ChoiceField(
|
pubkey_type = ChoiceField(
|
||||||
choices=SSH_TYPE_CHOICES,
|
choices=SSH_TYPE_CHOICES,
|
||||||
label='SSH public key type',
|
label='SSH public key type',
|
||||||
help_text="unless you know what you're doing you can leave this be.")
|
help_text="unless you know what you're doing you can leave this be.")
|
||||||
|
|
||||||
aup = BooleanField(
|
aup = BooleanField(
|
||||||
label='i super agree to our acceptable use policy',
|
label="i agree to the town's acceptable use policy",
|
||||||
help_text='please read our <a href="https://tilde.town/wiki/conduct.html">code of conduct</a> and click this box if you agree.')
|
help_text='please read our <a href="https://tilde.town/wiki/conduct.html">code of conduct</a> and click this box if you agree.')
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
|
|
Loading…
Reference in New Issue