2017-01-12 23:54:15 +08:00
|
|
|
<% provide(:head_title, t("my_modules.protocols.head_title", project: h(@project.name), module: h(@my_module.name)).html_safe) %>
|
2017-06-02 22:34:09 +08:00
|
|
|
|
2017-06-05 17:31:05 +08:00
|
|
|
<%= render partial: 'shared/drag_n_drop_overlay' %>
|
2018-11-29 18:28:36 +08:00
|
|
|
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
|
2019-05-20 19:13:31 +08:00
|
|
|
<%= render partial: "shared/secondary_navigation" %>
|
2016-07-21 19:11:15 +08:00
|
|
|
|
2019-03-15 21:21:34 +08:00
|
|
|
<div class="content-pane my-modules-protocols-index">
|
2019-04-30 20:57:50 +08:00
|
|
|
<span class="module-header">
|
|
|
|
<%= render partial: "module_header" %>
|
|
|
|
</span>
|
2016-07-21 19:11:15 +08:00
|
|
|
|
2019-05-11 22:04:28 +08:00
|
|
|
<div class="protocol-title">
|
2019-03-14 23:08:52 +08:00
|
|
|
<%= t('Protocol') %>
|
2019-05-11 22:04:28 +08:00
|
|
|
</div>
|
2019-03-14 23:08:52 +08:00
|
|
|
|
2019-05-14 15:43:02 +08:00
|
|
|
<div class="protocol-status-container">
|
|
|
|
<div class="protocol-status-bar" data-role="protocol-status-bar">
|
2018-05-08 22:33:42 +08:00
|
|
|
<%= render partial: "my_modules/protocols/protocol_status_bar.html.erb" %>
|
|
|
|
</div>
|
|
|
|
<%= render partial: "my_modules/protocols/protocol_buttons.html.erb" %>
|
2019-06-19 15:56:32 +08:00
|
|
|
<% if can_manage_protocol_in_module?(@protocol) %>
|
|
|
|
<%= render partial: "my_modules/recent_protocol_dropdown.html.erb", locals: {protocol: @my_module.protocol}%>
|
|
|
|
<% end %>
|
2016-07-21 19:11:15 +08:00
|
|
|
</div>
|
|
|
|
|
2019-03-14 23:08:52 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="protocol-description-content">
|
|
|
|
<% if can_manage_module?(@my_module) %>
|
2019-04-26 13:57:46 +08:00
|
|
|
<%= render partial: "my_modules/protocols/protocol_description_form", locals:
|
2019-04-24 19:34:56 +08:00
|
|
|
{
|
|
|
|
protocol: @my_module.protocol,
|
|
|
|
update_url: update_protocol_description_my_module_path(@my_module, format: :json)
|
2019-04-26 13:57:46 +08:00
|
|
|
}
|
2019-04-24 19:34:56 +08:00
|
|
|
%>
|
2019-03-14 23:08:52 +08:00
|
|
|
<% elsif @my_module.protocol.description.present? %>
|
2019-05-11 02:39:26 +08:00
|
|
|
<%= custom_auto_link(@my_module.protocol.tinymce_render(:description),
|
2019-03-20 06:32:24 +08:00
|
|
|
simple_format: false,
|
|
|
|
tags: %w(img),
|
|
|
|
team: current_team) %>
|
2019-03-14 23:08:52 +08:00
|
|
|
<% else %>
|
2019-05-11 22:04:28 +08:00
|
|
|
<span style="font-size: 16px"><%= t('my_modules.protocols.protocol_status_bar.no_description') %></span>
|
2019-03-14 23:08:52 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-08 22:33:42 +08:00
|
|
|
<div data-role="steps-container">
|
|
|
|
<%= render partial: "protocols/steps.html.erb" %>
|
|
|
|
</div>
|
2016-07-21 19:11:15 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- URL for status bar refreshing -->
|
|
|
|
<div class="hidden" data-role="protocol-status-bar-url" data-url="<%= protocol_status_bar_protocol_path(@protocol) %>"></div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Confirm link update modal -->
|
|
|
|
<%= render partial: "my_modules/protocols/confirm_link_update_modal.html.erb" %>
|
|
|
|
|
|
|
|
<!-- Load from repository modal -->
|
|
|
|
<%= render partial: "my_modules/protocols/load_from_repository_modal.html.erb" %>
|
|
|
|
|
|
|
|
<!-- Copy to repository protocol modal -->
|
|
|
|
<%= render partial: "my_modules/protocols/copy_to_repository_modal.html.erb" %>
|
|
|
|
|
|
|
|
<!-- Import protocol elements -->
|
|
|
|
<%= render partial: "protocols/import_export/import_elements.html.erb" %>
|
|
|
|
|
2017-05-04 18:41:22 +08:00
|
|
|
<!-- Complete task modal -->
|
|
|
|
<%= render partial: 'my_modules/complete_task_modal.html.erb' %>
|
|
|
|
|
2019-03-16 03:59:15 +08:00
|
|
|
<!-- Create new office file modal -->
|
|
|
|
<%= render partial: 'assets/wopi/create_wopi_file_modal.html.erb' %>
|
|
|
|
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= stylesheet_link_tag 'datatables' %>
|
|
|
|
<%= javascript_include_tag("my_modules/protocols") %>
|