mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
16 lines
906 B
Text
16 lines
906 B
Text
<div class="well">
|
|
<%= bootstrap_form_for(@step, url: step_path(id: @step.id, format: :json), remote: true, authenticity_token: true, multipart: true, data: { role: "edit-step-form", type: :json }) do |f| %>
|
|
<h4><%= t("protocols.steps.edit.edit_step_title") %></h4>
|
|
<hr>
|
|
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
|
|
<hr>
|
|
<% if direct_upload %>
|
|
<%= f.submit t("protocols.steps.edit.edit_step"), class: 'btn btn-primary', onclick: 'animateSpinner(); startFileUpload(event, this);' %>
|
|
<% else %>
|
|
<%= f.submit t("protocols.steps.edit.edit_step"), class: 'btn btn-primary', onclick: 'animateSpinner(); stepValidator(event);' %>
|
|
<% end %>
|
|
<a type="button" data-action="cancel-edit" class="btn btn-default" href="<%= step_path(id: @step, format: :json) %>" data-remote="true">
|
|
<%= t("general.cancel")%>
|
|
</a>
|
|
<% end %>
|
|
</div>
|