mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 13:16:28 +08:00
21 lines
1.1 KiB
Text
21 lines
1.1 KiB
Text
<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">
|
|
<%= form_with model: [@project, @experiment], html: { class: 'experiment-action-form' }, builder: SciFormHelper::SciFormBuilder do |f| %>
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="<%= t('general.close') %>"><i class="sn-icon sn-icon-close"></i></button>
|
|
<h4 class="modal-title" id="edit-eperiment-modal-label">
|
|
<%= t('experiments.edit.modal_title', experiment: @experiment.name ) %>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<%= render partial: 'form', locals: { form: f } %>
|
|
</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' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|