mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-27 02:43:01 +00:00
[WEI] Update validation buttons for 1A
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
da1e15c5e6
commit
b27341009e
@ -99,9 +99,12 @@ class WEIRegistrationTable(tables.Table):
|
|||||||
|
|
||||||
url = reverse_lazy('wei:validate_registration', args=(record.pk,))
|
url = reverse_lazy('wei:validate_registration', args=(record.pk,))
|
||||||
text = _('Validate')
|
text = _('Validate')
|
||||||
if record.fee > record.user.note.balance:
|
if record.fee > record.user.note.balance and not record.soge_credit:
|
||||||
btn_class = 'btn-secondary'
|
btn_class = 'btn-secondary'
|
||||||
tooltip = _("The user does not have enough money.")
|
tooltip = _("The user does not have enough money.")
|
||||||
|
elif record.first_year and 'selected_bus_pk' not in record.information:
|
||||||
|
btn_class = 'btn-info'
|
||||||
|
tooltip = _("The user is in first year, and the repartition algorithm didn't run.")
|
||||||
else:
|
else:
|
||||||
btn_class = 'btn-success'
|
btn_class = 'btn-success'
|
||||||
tooltip = _("The user has enough money, you can validate the registration.")
|
tooltip = _("The user has enough money, you can validate the registration.")
|
||||||
|
Loading…
Reference in New Issue
Block a user