Issue #3555 - Added feature for Org admins can show/hide the by johnpinto1 · Pull Request #3579 · DMPRoadmap/roadmap

gjacob24

Ethical_Issues fragment in plans project details page.
Co-authored-by: don-stuckey <dstuckey@ed.ac.uk>

This feature was contributed to DMPonline by @don-stuckey.

Changes:
- These changes only kick in if enable_ethical_issues is enable in the
  application config.
- Added to Org model attribute in a migration
   add_ro_ethical_concerns  :boolean  default(true), not null
- Added a checkbox 'Add "Research outputs may have ethical concerns"
  field to "Project details" tab in plans' to app/views/orgs/_profile_form.html.erb.
- Added code to the Plan Project Details view to show or hide the Ethical
  Issues fragment.
- Added :add_ro_ethical_concerns to the strong params org_params for the
  Org controller.

aaronskiba

aaronskiba

aaronskiba

aaronskiba

aaronskiba

aaronskiba

aaronskiba