Merge pull request #5825 from betagouv/fix-expert-invites-emails

fixes regarding invited expert list
This commit is contained in:
Kara Diaby 2021-01-04 14:25:04 +01:00 committed by GitHub
commit 99852fd65a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 8 deletions

View file

@ -187,7 +187,6 @@ module NewAdministrateur
def invited_expert_list
@invited_expert_emails = Avis.invited_expert_emails(@procedure)
redirect_to admin_procedure_path(@procedure) if @invited_expert_emails.blank?
end
private

View file

@ -1,10 +1,18 @@
.container
%h1.mt-2 Experts invités sur #{@procedure.libelle}
%table.table.mt-2
%thead
%tr
%th Liste des experts
%tbody
- @invited_expert_emails.each do |expert|
- if @invited_expert_emails.present?
%table.table.mt-2
%thead
%tr
%td= expert
%th Liste des experts
%tbody
- @invited_expert_emails.each do |expert|
%tr
%td
%span.icon.person
= expert
- else
.blank-tab
%h2.empty-text Aucun expert invité pour le moment.
%p.empty-text-details Les instructeurs de cette démarche n'ont pas encore fait appel aux experts.