Allow manually-added students to still pay

master
Tanner Collin 2 years ago
parent edcc8d2ce0
commit 0ed69e36e7
  1. 8
      webclient/src/Classes.js

@ -609,9 +609,13 @@ export function ClassDetail(props) {
}
</p>
{userTraining.attendance_status === 'Waiting for payment' &&
{clazz.cost != '0.00' && !userTraining.paid_date && userTraining.attendance_status !== 'Withdrawn' &&
<div>
<p>Please pay the course fee of ${clazz.cost} to confirm your attendance.</p>
{userTraining.attendance_status === 'Waiting for payment' ?
<p>Please pay the course fee of ${clazz.cost} to confirm your attendance:</p>
:
<p>In case you haven't paid the course fee of ${clazz.cost} yet, you can do that here:</p>
}
<PayPalPayNow
amount={clazz.cost}
name={clazz.course_data.name}

Loading…
Cancel
Save