2021-01-28 04:53:39 +08:00
|
|
|
<div class="modal" id="edit-experiment-modal-<%= @experiment.id %>" tabindex="-1" role="dialog" aria-labelledby="edit-experiment-modal-label">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
2023-07-03 17:11:51 +08:00
|
|
|
<%= form_with model: [@project, @experiment], html: { class: 'experiment-action-form' }, builder: SciFormHelper::SciFormBuilder do |f| %>
|
2016-07-28 20:44:44 +08:00
|
|
|
<div class="modal-header">
|
2021-01-28 04:53:39 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="<%= t('general.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>
|
2016-07-28 20:44:44 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'form', locals: { form: f } %>
|
2016-07-28 20:44:44 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2021-01-28 04:53:39 +08:00
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%= t('general.cancel') %></button>
|
|
|
|
<%= f.submit t('experiments.edit.modal_create'), class: 'btn btn-primary' %>
|
2016-07-28 20:44:44 +08:00
|
|
|
</div>
|
2021-01-28 04:53:39 +08:00
|
|
|
<% end %>
|
2016-07-28 20:44:44 +08:00
|
|
|
</div>
|
2021-01-28 04:53:39 +08:00
|
|
|
</div>
|
2016-07-28 20:44:44 +08:00
|
|
|
</div>
|