Merge pull request #1703 from urbanrotnik/ur-sci-3382-duplicated-complete-button

Remove duplicated button [SCI-3382]
This commit is contained in:
Urban Rotnik 2019-04-26 15:46:57 +02:00 committed by GitHub
commit 090df87f48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,18 +25,17 @@
<%= render partial: "my_modules/protocols/protocol_status_bar.html.erb" %> <%= render partial: "my_modules/protocols/protocol_status_bar.html.erb" %>
</div> </div>
<%= render partial: "my_modules/protocols/protocol_buttons.html.erb" %> <%= render partial: "my_modules/protocols/protocol_buttons.html.erb" %>
<%= render partial: "my_modules/state_buttons.html.erb" %>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="protocol-description-content"> <div class="protocol-description-content">
<% if can_manage_module?(@my_module) %> <% if can_manage_module?(@my_module) %>
<%= render partial: "my_modules/protocols/protocol_description_form", locals: <%= render partial: "my_modules/protocols/protocol_description_form", locals:
{ {
protocol: @my_module.protocol, protocol: @my_module.protocol,
update_url: update_protocol_description_my_module_path(@my_module, format: :json) update_url: update_protocol_description_my_module_path(@my_module, format: :json)
} }
%> %>
<% elsif @my_module.protocol.description.present? %> <% elsif @my_module.protocol.description.present? %>
<%= custom_auto_link(@my_module.protocol.description, <%= custom_auto_link(@my_module.protocol.description,