mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
35 lines
1.6 KiB
Text
35 lines
1.6 KiB
Text
<div class="modal fade" id="modal-move-module-group" tabindex="-1" role="dialog" aria-labelledby="modal-move-module-group-label">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="modal-move-module-group-label"><%=t "experiments.canvas.edit.modal_move_module_group.title" %></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<% experiments = @experiment.project.experiments.active %>
|
|
<% if experiments.count > 1 %>
|
|
<%= bootstrap_form_tag do |f| %>
|
|
<%= f.select :experiment_id, experiments
|
|
.select { |e| e != @experiment }
|
|
.collect { |e| [ e.name, e.id ] }, {},
|
|
{class: "form-control selectpicker", "data-role" => "clear"} %>
|
|
<% end %>
|
|
<% else %>
|
|
<div>
|
|
<em>
|
|
<%= t("experiments.canvas.edit.modal_move_module.no_experiments") %>
|
|
</em>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<% if experiments.count > 1 %>
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%=t "general.cancel" %></button>
|
|
<button type="button" class="btn btn-primary" data-action="confirm">
|
|
<%=t "experiments.canvas.edit.modal_move_module_group.confirm" %>
|
|
</button>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|