Rename class status "Failed" to "Try-again"

This commit is contained in:
Tanner Collin 2023-08-15 19:53:29 +00:00
parent 31daa56df0
commit e1e98da7d8
3 changed files with 8 additions and 8 deletions

View File

@ -569,7 +569,7 @@ class TrainingSerializer(serializers.ModelSerializer):
'Waiting for payment',
'Withdrawn',
'Rescheduled',
'Failed',
'Try-again',
'No-show',
'Attended',
'Confirmed'

View File

@ -668,8 +668,8 @@ export function ClassDetail(props) {
{clazz.instructor !== user.id &&
(userTraining ?
<div>
{ userTraining.attendance_status !== 'Failed' && <p>Status: {userTraining.attendance_status}</p>}
{ userTraining.attendance_status === 'Failed' && <p>Status: Attempted</p>}
<p>Status: {userTraining.attendance_status}</p>
<p>
{userTraining.attendance_status === 'Withdrawn' ?
<Button loading={loading} onClick={() => handleToggle('Waiting for payment')}>

View File

@ -116,8 +116,8 @@ function AttendanceRow(props) {
Rescheduled
</Button>
<Button {...makeProps('Failed')}>
Failed
<Button {...makeProps('Try-again')}>
Try-again
</Button>
<Button {...makeProps('No-show')}>