Only allow admins to change member's names

This commit is contained in:
2020-01-23 03:11:37 +00:00
parent 66c959db59
commit 664859dd26
4 changed files with 17 additions and 17 deletions

View File

@@ -107,21 +107,6 @@ export function AccountForm(props) {
<Form onSubmit={handleSubmit}>
<Header size='medium'>Member Details</Header>
<Form.Group widths='equal'>
<Form.Input
label='First Name'
fluid
required
{...makeProps('first_name')}
/>
<Form.Input
label='Last Name'
fluid
required
{...makeProps('last_name')}
/>
</Form.Group>
<Form.Input
label='Preferred First Name'
required

View File

@@ -394,6 +394,19 @@ export function AdminMemberForm(props) {
<Form onSubmit={handleSubmit}>
<Header size='medium'>Edit Member Details</Header>
<Form.Group widths='equal'>
<Form.Input
label='First Name'
fluid
{...makeProps('first_name')}
/>
<Form.Input
label='Last Name'
fluid
{...makeProps('last_name')}
/>
</Form.Group>
<Form.Input
label='Email'
{...makeProps('email')}