close #114
introduced "Failed" status for instructor polite wording for member
This commit is contained in:
parent
9a4760aef5
commit
8315aa7b5d
|
@ -569,6 +569,7 @@ class TrainingSerializer(serializers.ModelSerializer):
|
|||
'Waiting for payment',
|
||||
'Withdrawn',
|
||||
'Rescheduled',
|
||||
'Failed',
|
||||
'No-show',
|
||||
'Attended',
|
||||
'Confirmed'
|
||||
|
@ -1076,4 +1077,4 @@ class MyLoginSerializer(LoginSerializer):
|
|||
if not user:
|
||||
raise ValidationError(dict(password='Incorrect password. Check caps lock.'))
|
||||
|
||||
return user
|
||||
return user
|
|
@ -669,7 +669,8 @@ export function ClassDetail(props) {
|
|||
{clazz.instructor !== user.id &&
|
||||
(userTraining ?
|
||||
<div>
|
||||
<p>Status: {userTraining.attendance_status}</p>
|
||||
{ userTraining.attendance_status !== 'Failed' && <p>Status: {userTraining.attendance_status}</p>}
|
||||
{ userTraining.attendance_status === 'Failed' && <p>Status: Attempted</p>}
|
||||
<p>
|
||||
{userTraining.attendance_status === 'Withdrawn' ?
|
||||
<Button loading={loading} onClick={() => handleToggle('Waiting for payment')}>
|
||||
|
@ -750,5 +751,4 @@ export function ClassDetail(props) {
|
|||
}
|
||||
</Container>
|
||||
);
|
||||
};
|
||||
|
||||
};
|
|
@ -116,6 +116,10 @@ function AttendanceRow(props) {
|
|||
Rescheduled
|
||||
</Button>
|
||||
|
||||
<Button {...makeProps('Failed')}>
|
||||
Failed
|
||||
</Button>
|
||||
|
||||
<Button {...makeProps('No-show')}>
|
||||
No-show
|
||||
</Button>
|
||||
|
@ -495,4 +499,4 @@ export function InstructorClassList(props) {
|
|||
}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user