instructeur can update contact information for groupe instructeur
This commit is contained in:
parent
ba0d3fa678
commit
41b2c9355b
5 changed files with 84 additions and 1 deletions
|
@ -50,7 +50,18 @@
|
|||
= paginate @instructeurs, views_prefix: 'shared'
|
||||
.card.mt-2
|
||||
.card-title Informations de contact
|
||||
- if @groupe_instructeur.contact_information.nil?
|
||||
- service = @groupe_instructeur.contact_information
|
||||
- if service.nil?
|
||||
= "Le groupe #{@groupe_instructeur.label} n'a pas d'informations de contact. Les informations de contact affichées à l'usager seront celles du service de la procédure"
|
||||
%p.mt-3
|
||||
= link_to "+ Ajouter des informations de contact", new_instructeur_groupe_contact_information_path(procedure_id: @procedure.id, groupe_id: @groupe_instructeur.id), class: "fr-btn"
|
||||
- else
|
||||
%p.mt-3
|
||||
= link_to "Modifier les informations de contact", edit_instructeur_groupe_contact_information_path(procedure_id: @procedure.id, groupe_id: @groupe_instructeur.id), class: "fr-btn"
|
||||
%p.mt-3= service.nom
|
||||
= render SimpleFormatComponent.new(service.adresse, class_names_map: {paragraph: 'fr-footer__content-desc'})
|
||||
= service.email
|
||||
- if service.telephone.present?
|
||||
%p= service.telephone
|
||||
- if service.horaires.present?
|
||||
%p= service.horaires
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue