mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Add additional NewStep button
This commit is contained in:
parent
f44404a1f8
commit
aa36d93bea
1 changed files with 13 additions and 0 deletions
|
@ -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 -->
|
||||
|
|
Loading…
Reference in a new issue