Skip to content

Commit

Permalink
switch to success toast
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Dec 17, 2024
1 parent 2445bb6 commit bbdd791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions itou/www/apply/views/batch_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def archive(request):
)

if archived_nb > 1:
messages.info(request, f"{archived_nb} candidatures archivées avec succès.", extra_tags="toast")
messages.success(request, f"{archived_nb} candidatures archivées avec succès.", extra_tags="toast")
else:
messages.info(request, f"{archived_nb} candidature archivée avec succès.", extra_tags="toast")
messages.success(request, f"{archived_nb} candidature archivée avec succès.", extra_tags="toast")
next_url = get_safe_url(request, "next_url", fallback_url=reverse("apply:list_for_siae"))
logger.info(
"user=%s batch archived %s applications: %s",
Expand Down Expand Up @@ -155,9 +155,9 @@ def transfer(request):

transfered_nb = len(transfered_ids)
if transfered_nb > 1:
messages.info(request, f"{transfered_nb} candidatures transférées avec succès.", extra_tags="toast")
messages.success(request, f"{transfered_nb} candidatures transférées avec succès.", extra_tags="toast")
else:
messages.info(request, f"{transfered_nb} candidature transférée avec succès.", extra_tags="toast")
messages.success(request, f"{transfered_nb} candidature transférée avec succès.", extra_tags="toast")
next_url = get_safe_url(request, "next_url", fallback_url=reverse("apply:list_for_siae"))
logger.info(
"user=%s batch transfered %s applications: %s",
Expand Down

0 comments on commit bbdd791

Please sign in to comment.