2016-07-28 20:44:44 +08:00
|
|
|
<!-- Edit experiment modal -->
|
2016-08-04 18:57:33 +08:00
|
|
|
<div class="modal"
|
|
|
|
id="edit-experiment-modal-<%= @experiment.id %>"
|
|
|
|
tabindex="-1"
|
|
|
|
role="dialog"
|
|
|
|
aria-labelledby="edit-experiment-modal-label">
|
2016-09-02 20:13:59 +08:00
|
|
|
<%= bootstrap_form_for [@project, @experiment], remote: true do |f| %>
|
2016-07-28 20:44:44 +08:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title" id="edit-eperiment-modal-label"><%= t("experiments.edit.modal_title", experiment: @experiment.name ) %></h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<%= render partial: "form.html.erb", locals: { form: f } %>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<%= f.submit t("experiments.edit.modal_create"), class: "btn btn-primary" %>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%=t "general.cancel" %></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|