Rename class status "Failed" to "Try-again"
This commit is contained in:
parent
31daa56df0
commit
e1e98da7d8
|
@ -569,7 +569,7 @@ class TrainingSerializer(serializers.ModelSerializer):
|
||||||
'Waiting for payment',
|
'Waiting for payment',
|
||||||
'Withdrawn',
|
'Withdrawn',
|
||||||
'Rescheduled',
|
'Rescheduled',
|
||||||
'Failed',
|
'Try-again',
|
||||||
'No-show',
|
'No-show',
|
||||||
'Attended',
|
'Attended',
|
||||||
'Confirmed'
|
'Confirmed'
|
||||||
|
|
|
@ -668,8 +668,8 @@ export function ClassDetail(props) {
|
||||||
{clazz.instructor !== user.id &&
|
{clazz.instructor !== user.id &&
|
||||||
(userTraining ?
|
(userTraining ?
|
||||||
<div>
|
<div>
|
||||||
{ userTraining.attendance_status !== 'Failed' && <p>Status: {userTraining.attendance_status}</p>}
|
<p>Status: {userTraining.attendance_status}</p>
|
||||||
{ userTraining.attendance_status === 'Failed' && <p>Status: Attempted</p>}
|
|
||||||
<p>
|
<p>
|
||||||
{userTraining.attendance_status === 'Withdrawn' ?
|
{userTraining.attendance_status === 'Withdrawn' ?
|
||||||
<Button loading={loading} onClick={() => handleToggle('Waiting for payment')}>
|
<Button loading={loading} onClick={() => handleToggle('Waiting for payment')}>
|
||||||
|
|
|
@ -116,8 +116,8 @@ function AttendanceRow(props) {
|
||||||
Rescheduled
|
Rescheduled
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button {...makeProps('Failed')}>
|
<Button {...makeProps('Try-again')}>
|
||||||
Failed
|
Try-again
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button {...makeProps('No-show')}>
|
<Button {...makeProps('No-show')}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user