2016-07-28 20:44:44 +08:00
|
|
|
<div class="modal" id="new-experiment-modal" tabindex="-1" role="dialog" aria-labelledby="new-experiment-modal-label">
|
2021-01-28 04:53:39 +08:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
2023-08-09 21:47:33 +08:00
|
|
|
<%= form_with model: [@project, @experiment],
|
2023-07-03 17:11:51 +08:00
|
|
|
method: :post,
|
2023-08-09 21:47:33 +08:00
|
|
|
data: { remote: true },
|
2023-07-03 17:11:51 +08:00
|
|
|
builder: SciFormHelper::SciFormBuilder,
|
|
|
|
html: { class: 'experiment-action-form' } do |f| %>
|
2016-07-28 20:44:44 +08:00
|
|
|
<div class="modal-header">
|
2023-08-17 19:55:17 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="<%= t('general.close') %>"><i class="sn-icon sn-icon-close"></i></button>
|
2016-07-28 20:44:44 +08:00
|
|
|
<h4 class="modal-title" id="new-eperiment-modal-label"><%= t("experiments.new.modal_title") %></h4>
|
|
|
|
</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.new.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>
|