Skip to content

Commit

Permalink
imp: Display the contract date alert as a number of days
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed May 7, 2024
1 parent 73de316 commit bb055b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/contracts/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@
{{ 'contracts.show.alert' | trans }}
</span>

<time datetime="{{ contract.dateOfAlert | dateIso }}">
{{ contract.dateOfAlert | dateTrans('dd MMM') }}
<time datetime="{{ contract.dateOfAlert | dateIso }}" title="{{ contract.dateOfAlert | dateTrans('dd MMM yyyy') }}">
{{ 'contracts.show.alert.before_end' | trans({ days: contract.dateAlert }) | raw }}
</time>
</div>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions translations/messages+intl-icu.en_GB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ contracts.index.title: Contracts
contracts.new.title: 'New contract'
contracts.notes: 'Private notes'
contracts.show.alert: Alert
contracts.show.alert.before_end: '{days} days<br>before end'
contracts.show.time_accounting_unit: 'Time accounting unit: {count, plural, one {1 minute} other {# minutes}}'
contracts.show.edit: 'Edit the contract'
contracts.show.notes_confidential: confidential
Expand Down
1 change: 1 addition & 0 deletions translations/messages+intl-icu.fr_FR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ contracts.index.title: Contrats
contracts.new.title: 'Nouveau contrat'
contracts.notes: 'Notes privées'
contracts.show.alert: Alerte
contracts.show.alert.before_end: '{days} jours<br>avant la fin'
contracts.show.time_accounting_unit: "Unité de comptabilisation du temps\_: {count, plural, one {1 minute} other {# minutes}}"
contracts.show.edit: 'Modifier le contrat'
contracts.show.notes_confidential: confidentielles
Expand Down

0 comments on commit bb055b4

Please sign in to comment.