feat(sva): show decision date in badge title
This commit is contained in:
parent
2a8b97a30d
commit
cd95762383
4 changed files with 19 additions and 1 deletions
|
@ -53,4 +53,14 @@ class Instructeurs::SVASVRDecisionBadgeComponent < ApplicationComponent
|
|||
def label_for_badge
|
||||
sva? ? "SVA :" : "SVR :"
|
||||
end
|
||||
|
||||
def title
|
||||
return if without_date?
|
||||
|
||||
if pending_correction?
|
||||
t(".dossier_terminated_x_days_after_correction", count: days_count)
|
||||
else
|
||||
t(".dossier_terminated_on", date: helpers.l(object.sva_svr_decision_on))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,3 +8,7 @@
|
|||
other: in %{count} days
|
||||
remaining_days_after_correction:
|
||||
other: "%{count} d. after correction"
|
||||
dossier_terminated_x_days_after_correction:
|
||||
one: "The file will be automatically processed %{count} day after the applicant has re-submitted his file"
|
||||
other: "The file will be automatically processed %{count} days after the applicant has re-submitted his file"
|
||||
dossier_terminated_on: "The file will be automatically processed on %{date}"
|
||||
|
|
|
@ -8,3 +8,7 @@
|
|||
other: dans %{count} jours
|
||||
remaining_days_after_correction:
|
||||
other: "%{count} j. après correction"
|
||||
dossier_terminated_x_days_after_correction:
|
||||
one: "Le dossier sera automatiquement traité %{count} jour après que le demandeur a re-déposé son dossier"
|
||||
other: "Le dossier sera automatiquement traité %{count} jours après que le demandeur a re-déposé son dossier"
|
||||
dossier_terminated_on: "Le dossier sera automatiquement traité le %{date}"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
%span.fr-badge.fr-badge--sm
|
||||
= t(sva? ? '.no_sva' : '.no_svr')
|
||||
- else
|
||||
%span{ class: classes }
|
||||
%span{ class: classes, title: title }
|
||||
- if with_label.present?
|
||||
= label_for_badge
|
||||
- if pending_correction?
|
||||
|
|
Loading…
Reference in a new issue