2016-02-12 23:52:43 +08:00
|
|
|
<div class="well">
|
2017-06-02 22:34:09 +08:00
|
|
|
<%= bootstrap_form_for(@step, url: protocol_steps_path(@protocol, format: :json), authenticity_token: true, multipart: true, data: { role: "new-step-form", type: :json }) do |f| %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<h4><%= t("protocols.steps.new.add_step_title") %></h4>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
|
2018-04-25 19:57:12 +08:00
|
|
|
<div class="align-right">
|
2020-01-07 23:13:34 +08:00
|
|
|
<button type="button" data-action="cancel-new" class="btn btn-secondary">
|
2018-04-25 19:57:12 +08:00
|
|
|
<%= t("general.cancel")%>
|
|
|
|
</button>
|
2020-01-07 23:13:34 +08:00
|
|
|
<%= f.submit t("protocols.steps.new.add_step"), class: 'btn btn-primary step-save', onclick: "processStep(event, false);" %>
|
2018-04-25 19:57:12 +08:00
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|