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

22 lines
1.1 KiB
Text
Raw Normal View History

<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">
<button type="button" class="close" data-dismiss="modal" aria-label="<%= t('general.close') %>"><span aria-hidden="true">&times;</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">
<%= 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.edit.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>