Add day/evening attendance option
This commit is contained in:
@@ -14,6 +14,7 @@ class AdminPerson extends React.Component {
|
||||
email: PropTypes.string,
|
||||
password: PropTypes.string,
|
||||
attending: PropTypes.boolean,
|
||||
ceremony: PropTypes.boolean,
|
||||
}).isRequired,
|
||||
};
|
||||
|
||||
@@ -74,6 +75,20 @@ class AdminPerson extends React.Component {
|
||||
defaultValue={this.props.person.email}
|
||||
/>
|
||||
</div>
|
||||
<div className={s.formGroup}>
|
||||
<label className={s.label} htmlFor="ceremony">
|
||||
Invite type:
|
||||
</label>
|
||||
<select
|
||||
className={s.input}
|
||||
id="cermony"
|
||||
name="ceremony"
|
||||
defaultValue={this.props.person.ceremony ? 'true' : 'false'}
|
||||
>
|
||||
<option value="true">Full day</option>
|
||||
<option value="false">Evening only</option>
|
||||
</select>
|
||||
</div>
|
||||
<div className={s.formGroup}>
|
||||
<label className={s.label} htmlFor="password">
|
||||
Password:
|
||||
|
||||
@@ -11,7 +11,7 @@ export default {
|
||||
return { redirect: '/admin' };
|
||||
}
|
||||
|
||||
const resp = await fetchQL('{getPersonByKey{key,firstname,lastname,email,completed,password,starter,main,dietary}}', {
|
||||
const resp = await fetchQL('{getPersonByKey{key,firstname,lastname,email,completed,password,ceremony,starter,main,dietary}}', {
|
||||
key: params.key,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user