scinote-web/app/views/experiments/_new_modal.html.erb

24 lines
1.1 KiB
Text
Raw Normal View History

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">
<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">
<button type="button" class="close" data-dismiss="modal" aria-label="<%= t('general.close') %>"><span aria-hidden="true">&times;</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">
<%= render partial: 'form', locals: { form: f } %>
2016-07-28 20:44:44 +08:00
</div>
<div class="modal-footer">
<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>
<% end %>
2016-07-28 20:44:44 +08:00
</div>
</div>
2016-07-28 20:44:44 +08:00
</div>