From a31a1778cf53f77f25268d173e67d37ab903b2c3 Mon Sep 17 00:00:00 2001 From: ajugo Date: Thu, 2 Mar 2023 09:57:08 +0100 Subject: [PATCH] Add new protocol modal on dashboard [SCI-8042] (#5057) --- app/views/dashboards/_quick_start.html.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/dashboards/_quick_start.html.erb b/app/views/dashboards/_quick_start.html.erb index 0e3154d22..c1932779b 100644 --- a/app/views/dashboards/_quick_start.html.erb +++ b/app/views/dashboards/_quick_start.html.erb @@ -1,9 +1,9 @@
<%= t("dashboard.quick_start.new_task") %>
<% if can_create_protocols_in_repository?(current_team) %> - <%= button_to protocols_path(type: :public), class: 'btn btn-secondary' do %> + <% end %> <% if can_create_reports?(current_team) %> <%= link_to new_report_path, {class: "new-report btn btn-secondary"} do %> @@ -12,3 +12,6 @@ <% end %>
<%= render "create_task_modal" %> + +<%= render partial: "protocols/index/new_protocol_modal.html.erb", locals: {type: 'new'} %> +<%= javascript_include_tag "protocols/new_protocol" %>