Merge pull request #1956 from urbanrotnik/ur-sci-3733-add-button-new

Add additional NewStep button [SCI-3733]
This commit is contained in:
Urban Rotnik 2019-08-06 15:26:51 +02:00 committed by GitHub
commit 50045b9796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,19 @@
<% end %>
</div>
<div class="row">
<div class="pull-left" style="margin: 0 0 20px 15px;">
<a href="#"
class="btn btn-primary"
data-action="new-step"
data-href="<%= new_protocol_step_path(protocol_id: @protocol.id, format: :json) %>"
style="<%= @protocol.steps.empty? ? 'display: none;' : '' %>">
<span class="fas fa-plus" aria-hidden="true"></span>
<span class="hidden-xs"><%=t "protocols.steps.new_step" %></span>
</a>
</div>
</div>
<%= javascript_include_tag "handsontable.full.min" %>
<!-- Libraries for formulas -->