Skip to content

Commit

Permalink
Page de contacts: tri et groupement par département
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGirard committed Oct 28, 2024
1 parent 2693798 commit 868f069
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/views/static_pages/contact.html.slim
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
- content_for :title, "Contact"

h2 Votre département
ul.list-group.mb-2
- Territory.where.not(phone_number: nil).each do |territory|
li
span> #{territory}
= link_to territory.phone_number, "tel:#{territory.phone_number_formatted}"
li
span> Autres départements, voir
= link_to "l'annuaire des services publics", "https://lannuaire.service-public.fr/"
- Territory.where.not(phone_number_formatted: nil).order(:departement_number, :name).group_by(&:departement_number).each do |department_number, territories|
h3 #{department_number}
ul.list-group.mb-2
- territories.each do |territory|
li
span> #{territory.name}
= link_to territory.phone_number, "tel:#{territory.phone_number_formatted}"

h3 Autres contacts
span> Voir
= link_to "l'annuaire des services publics", "https://lannuaire.service-public.fr/"

.fr-grid-row.mt-4#tech-support
.fr-col-md-8
Expand Down

0 comments on commit 868f069

Please sign in to comment.