Sha256: 0b9d6d8b62d7f7adc4d1aecb931c9013ff3f537cdd4ee2393ee8243c1c71ca0d
Contents?: true
Size: 842 Bytes
Versions: 97
Compression:
Stored size: 842 Bytes
Contents
= content_for(:tabs) do = render "tabs", study: study = within_admin_layout(title: study.code, breadcrumbs: breadcrumb_for("Clinical Studies", research_studies_path)) do = render "form", study: study br hr br .panel.danger-zone h4 Danger zone br - super_admin = current_user.has_role?(:super_admin) - if super_admin p= link_to "Delete this study", research_study_path(study), method: :delete, data: { confirm: "Are you sure you want to delete this study?", disable: true }, class: "button" - else p= link_to "Delete this study", "#", class: "button", disabled: true p i You need to have the super_admin role to delete a study
Version data entries
97 entries across 97 versions & 1 rubygems