display for user groupe instructeur service when available
This commit is contained in:
parent
e9ff4292fa
commit
af195d9158
3 changed files with 11 additions and 1 deletions
|
@ -8,4 +8,10 @@ class ContactInformation < ApplicationRecord
|
|||
validates :horaires, presence: { message: 'doivent être renseignés' }, allow_nil: false
|
||||
validates :adresse, presence: { message: 'doit être renseignée' }, allow_nil: false
|
||||
validates :groupe_instructeur, presence: { message: 'doit être renseigné' }, allow_nil: false
|
||||
|
||||
def telephone_url
|
||||
if telephone.present?
|
||||
"tel:#{telephone.gsub(/[[:blank:]]/, '')}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1295,6 +1295,10 @@ class Dossier < ApplicationRecord
|
|||
)
|
||||
end
|
||||
|
||||
def service
|
||||
groupe_instructeur&.contact_information || procedure.service
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def create_missing_traitemets
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%footer.fr-footer.footer-procedure#footer{ role: "contentinfo" }
|
||||
- service = procedure.service
|
||||
- service = dossier&.service || procedure.service
|
||||
.fr-footer__top.fr-mb-0
|
||||
.fr-container
|
||||
.fr-grid-row.fr-grid-row--start.fr-grid-row--gutters
|
||||
|
|
Loading…
Reference in a new issue