Add surveys to proposal todo list

This commit is contained in:
Andrew Kvalheim 2023-03-14 17:00:53 -07:00
parent f8d6283f44
commit 1260786a62
8 changed files with 25 additions and 2 deletions

View file

@ -1,5 +1,5 @@
- surveys.each do |survey|
- if survey.survey_submissions.find_by(user: current_user)
- if survey.replied?(current_user)
%i.fa-solid.fa-square-check.text-success{ title: 'Thank you for filling out the survey' }
- else
%i.fa-solid.fa-square-minus.text-danger{ title: 'Please fill out the survey' }