app/views/users/edit.html.erb — add a section for survey enrollment below existing toggles:
<h3>Mental Health Tracking</h3>
<% @available_surveys.each do |survey| %>
<div class="field">
<% if current_user.enrolled_in?(survey) %>
<%= button_to "Disable #{survey.name}",
survey_enrollment_path(current_user.survey_enrollments.find_by!(survey: survey)),
method: :delete, class: button_class('danger') %>
<% else %>
<%= button_to "Enable #{survey.name}",
survey_enrollments_path(survey_id: survey.id),
method: :post, class: button_class('secondary') %>
<% end %>
</div>
<% end %>
UsersController#edit — add @available_surveys = Survey.published to the action.
app/views/users/edit.html.erb — add a section for survey enrollment below existing toggles:
UsersController#edit — add @available_surveys = Survey.published to the action.