fixes regarding invited expert list
This commit is contained in:
parent
0a3f4b38db
commit
0bd0fef8d5
2 changed files with 15 additions and 8 deletions
|
@ -187,7 +187,6 @@ module NewAdministrateur
|
||||||
|
|
||||||
def invited_expert_list
|
def invited_expert_list
|
||||||
@invited_expert_emails = Avis.invited_expert_emails(@procedure)
|
@invited_expert_emails = Avis.invited_expert_emails(@procedure)
|
||||||
redirect_to admin_procedure_path(@procedure) if @invited_expert_emails.blank?
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
.container
|
.container
|
||||||
%h1.mt-2 Experts invités sur #{@procedure.libelle}
|
%h1.mt-2 Experts invités sur #{@procedure.libelle}
|
||||||
|
- if @invited_expert_emails.present?
|
||||||
%table.table.mt-2
|
%table.table.mt-2
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
|
@ -7,4 +8,11 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @invited_expert_emails.each do |expert|
|
- @invited_expert_emails.each do |expert|
|
||||||
%tr
|
%tr
|
||||||
%td= expert
|
%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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue