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">
|
2021-02-11 19:36:39 +08:00
|
|
|
<%= bootstrap_form_for [@project, @experiment],
|
|
|
|
remote: true,
|
|
|
|
method: :post,
|
|
|
|
html: { class: 'experiment-action-form' } 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>
|
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">
|
2021-01-28 04:53:39 +08:00
|
|
|
<%= render partial: 'form.html.erb', 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>
|