Mark some member fields as required
This commit is contained in:
parent
bd3146f413
commit
0c814790a7
|
@ -15,13 +15,13 @@ class Member(models.Model):
|
|||
first_name = models.CharField(max_length=32)
|
||||
last_name = models.CharField(max_length=32)
|
||||
preferred_name = models.CharField(max_length=32)
|
||||
phone = models.CharField(max_length=32, null=True)
|
||||
phone = models.CharField(default='', max_length=32, null=True)
|
||||
emergency_contact_name = models.CharField(max_length=64, blank=True)
|
||||
emergency_contact_phone = models.CharField(max_length=32, blank=True)
|
||||
birthdate = models.DateField(blank=True, null=True)
|
||||
is_minor = models.BooleanField(default=False)
|
||||
guardian_name = models.CharField(max_length=32, blank=True, null=True)
|
||||
street_address = models.CharField(max_length=32, null=True)
|
||||
street_address = models.CharField(default='', max_length=32, null=True)
|
||||
city = models.CharField(default='Calgary, AB', max_length=32)
|
||||
postal_code = models.CharField(max_length=16, null=True)
|
||||
|
||||
|
|
|
@ -107,33 +107,40 @@ export function AccountForm(props) {
|
|||
|
||||
<Form.Input
|
||||
label='First Name'
|
||||
required
|
||||
{...makeProps('first_name')}
|
||||
/>
|
||||
<Form.Input
|
||||
label='Last Name'
|
||||
required
|
||||
{...makeProps('last_name')}
|
||||
/>
|
||||
<Form.Input
|
||||
label='Preferred First Name'
|
||||
required
|
||||
{...makeProps('preferred_name')}
|
||||
/>
|
||||
|
||||
<Form.Input
|
||||
label='Email Address'
|
||||
required
|
||||
{...makeProps('email')}
|
||||
/>
|
||||
|
||||
<Form.Input
|
||||
label='Phone Number (999) 555-1234'
|
||||
required
|
||||
{...makeProps('phone')}
|
||||
/>
|
||||
|
||||
<Form.Input
|
||||
label='Street Address'
|
||||
required
|
||||
{...makeProps('street_address')}
|
||||
/>
|
||||
<Form.Input
|
||||
label='City, Province'
|
||||
required
|
||||
{...makeProps('city')}
|
||||
/>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user