scinote-web/app/views/steps/_edit.html.erb

15 lines
749 B
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<div class="well">
2016-07-21 19:11:15 +08:00
<%= 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>
2016-02-12 23:52:43 +08:00
<hr>
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
<hr>
<div class="align-right">
<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>
<%= f.submit t("protocols.steps.edit.edit_step"), class: 'btn btn-success step-save', onclick: "processStep(event, true);" %>
</div>
2016-02-12 23:52:43 +08:00
<% end %>
</div>