mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Add new protocol modal on dashboard [SCI-8042] (#5057)
This commit is contained in:
parent
9908b31d11
commit
a31a1778cf
1 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
<div class="quick-start-buttons">
|
||||
<div class="new-task btn btn-secondary"><i class="fas fa-plus"></i><%= t("dashboard.quick_start.new_task") %></div>
|
||||
<% if can_create_protocols_in_repository?(current_team) %>
|
||||
<%= button_to protocols_path(type: :public), class: 'btn btn-secondary' do %>
|
||||
<button data-toggle="modal" data-target="#newProtocolModal" class="btn btn-secondary">
|
||||
<i class="fas fa-edit"></i><%= t("dashboard.quick_start.new_protocol") %>
|
||||
<% end %>
|
||||
</button>
|
||||
<% end %>
|
||||
<% if can_create_reports?(current_team) %>
|
||||
<%= link_to new_report_path, {class: "new-report btn btn-secondary"} do %>
|
||||
|
@ -12,3 +12,6 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<%= render "create_task_modal" %>
|
||||
|
||||
<%= render partial: "protocols/index/new_protocol_modal.html.erb", locals: {type: 'new'} %>
|
||||
<%= javascript_include_tag "protocols/new_protocol" %>
|
||||
|
|
Loading…
Reference in a new issue