Make application_date read-only, remove "On Spaceport"

This commit is contained in:
Tanner Collin 2022-01-15 23:14:18 +00:00
parent 554544bde6
commit 41ca60cd6d

View File

@ -426,11 +426,6 @@ export function AdminMemberForm(props) {
{...makeProps('email')}
/>
<Form.Input
label='Application Date'
{...makeProps('application_date')}
/>
<Form.Input
label='Current Start Date'
{...makeProps('current_start_date')}
@ -501,10 +496,16 @@ export function AdminMemberInfo(props) {
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Application Date:</Table.Cell>
<Table.Cell>{member.application_date}</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Expire Date:</Table.Cell>
<Table.Cell>{member.expire_date}</Table.Cell>
</Table.Row>
{member.paused_date && <Table.Row>
<Table.Cell>Paused Date:</Table.Cell>
<Table.Cell>{member.paused_date}</Table.Cell>
@ -537,11 +538,6 @@ export function AdminMemberInfo(props) {
<Table.Cell>{member.emergency_contact_phone || 'None'}</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>On Spaceport:</Table.Cell>
<Table.Cell>{member.user ? 'Yes' : 'No'}</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Discourse Username:</Table.Cell>
<Table.Cell>{member.discourse_username || '?'}</Table.Cell>