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)
|
first_name = models.CharField(max_length=32)
|
||||||
last_name = models.CharField(max_length=32)
|
last_name = models.CharField(max_length=32)
|
||||||
preferred_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_name = models.CharField(max_length=64, blank=True)
|
||||||
emergency_contact_phone = models.CharField(max_length=32, blank=True)
|
emergency_contact_phone = models.CharField(max_length=32, blank=True)
|
||||||
birthdate = models.DateField(blank=True, null=True)
|
birthdate = models.DateField(blank=True, null=True)
|
||||||
is_minor = models.BooleanField(default=False)
|
is_minor = models.BooleanField(default=False)
|
||||||
guardian_name = models.CharField(max_length=32, blank=True, null=True)
|
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)
|
city = models.CharField(default='Calgary, AB', max_length=32)
|
||||||
postal_code = models.CharField(max_length=16, null=True)
|
postal_code = models.CharField(max_length=16, null=True)
|
||||||
|
|
||||||
|
|
|
@ -107,33 +107,40 @@ export function AccountForm(props) {
|
||||||
|
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='First Name'
|
label='First Name'
|
||||||
|
required
|
||||||
{...makeProps('first_name')}
|
{...makeProps('first_name')}
|
||||||
/>
|
/>
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='Last Name'
|
label='Last Name'
|
||||||
|
required
|
||||||
{...makeProps('last_name')}
|
{...makeProps('last_name')}
|
||||||
/>
|
/>
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='Preferred First Name'
|
label='Preferred First Name'
|
||||||
|
required
|
||||||
{...makeProps('preferred_name')}
|
{...makeProps('preferred_name')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='Email Address'
|
label='Email Address'
|
||||||
|
required
|
||||||
{...makeProps('email')}
|
{...makeProps('email')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='Phone Number (999) 555-1234'
|
label='Phone Number (999) 555-1234'
|
||||||
|
required
|
||||||
{...makeProps('phone')}
|
{...makeProps('phone')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='Street Address'
|
label='Street Address'
|
||||||
|
required
|
||||||
{...makeProps('street_address')}
|
{...makeProps('street_address')}
|
||||||
/>
|
/>
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='City, Province'
|
label='City, Province'
|
||||||
|
required
|
||||||
{...makeProps('city')}
|
{...makeProps('city')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user