Log in as a user; go to pending courses tab, click on a pending course.
Right now, the popup displays a "registration" button, even if the user is already registered.
We should change the button with a registration status label and the pending explanations.
The backend should provide a JSON property describing the registration status as follows:
if the user is not registered, the returned value should be "null"; in this case we should display the registration button
if the user is registered and waiting for approval, the returned value should be "PAYMENT_PENDING" or "REGISTRATION_PENDING"; in this case, we should display the registration status label and the corresponding help text.
-if the user is registered and already approved, the returned value should be "FINALIZED" or "ONGOING"; in this case, we should not display anything
Log in as a user; go to pending courses tab, click on a pending course. Right now, the popup displays a "registration" button, even if the user is already registered.
We should change the button with a registration status label and the pending explanations.
The backend should provide a JSON property describing the registration status as follows:
Same thing applies for the rejected courses tab.
Related backend issue: https://github.com/danutchindris/edu-hospice-api/issues/216