2020-03-30 18:51:35 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="protocol-description-content">
|
2021-09-14 17:08:35 +08:00
|
|
|
<% if can_manage_my_module?(@my_module) %>
|
2020-03-30 18:51:35 +08:00
|
|
|
<%= render partial: "my_modules/protocols/protocol_description_form", locals:
|
|
|
|
{
|
|
|
|
protocol: @my_module.protocol,
|
|
|
|
update_url: update_protocol_description_my_module_path(@my_module, format: :json)
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<% elsif @my_module.protocol.description.present? %>
|
|
|
|
<%= custom_auto_link(@my_module.protocol.tinymce_render(:description),
|
|
|
|
simple_format: false,
|
|
|
|
tags: %w(img),
|
|
|
|
team: current_team) %>
|
|
|
|
<% else %>
|
|
|
|
<span style="font-size: 16px"><%= t('my_modules.protocols.protocol_status_bar.no_description') %></span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div data-role="steps-container">
|
|
|
|
<%= render partial: "protocols/steps.html.erb" %>
|
|
|
|
</div>
|