2022-05-19 19:46:03 +08:00
|
|
|
<div class="quick-start-buttons">
|
2023-06-08 14:33:37 +08:00
|
|
|
<div class="new-task btn btn-secondary"><i class="sn-icon sn-icon-new-task"></i><%= t("dashboard.quick_start.new_task") %></div>
|
2022-10-18 16:43:51 +08:00
|
|
|
<% if can_create_protocols_in_repository?(current_team) %>
|
2023-03-02 16:57:08 +08:00
|
|
|
<button data-toggle="modal" data-target="#newProtocolModal" class="btn btn-secondary">
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class="sn-icon sn-icon-protocols-templates"></i><%= t("dashboard.quick_start.new_protocol") %>
|
2023-03-02 16:57:08 +08:00
|
|
|
</button>
|
2022-05-19 19:46:03 +08:00
|
|
|
<% end %>
|
2022-10-18 16:43:51 +08:00
|
|
|
<% if can_create_reports?(current_team) %>
|
|
|
|
<%= link_to new_report_path, {class: "new-report btn btn-secondary"} do %>
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class="sn-icon sn-icon-reports"></i><%= t("dashboard.quick_start.new_report") %>
|
2022-10-18 16:43:51 +08:00
|
|
|
<% end %>
|
2022-05-19 19:46:03 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<%= render "create_task_modal" %>
|
2023-03-02 16:57:08 +08:00
|
|
|
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "protocols/index/new_protocol_modal", locals: {type: 'new'} %>
|
2023-03-02 16:57:08 +08:00
|
|
|
<%= javascript_include_tag "protocols/new_protocol" %>
|