mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 21:55:20 +08:00
Add protocolsIO import preview [SCI-8187] (#5183)
This commit is contained in:
parent
72186e8e8d
commit
4c42748e40
3 changed files with 16 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* global animateSpinner PerfectSb initHandsOnTable */
|
||||
/* global animateSpinner PerfectSb initHandsOnTable ProtocolsIndex */
|
||||
/* global HelperModule dropdownSelector */
|
||||
/* eslint-disable no-use-before-define, no-alert */
|
||||
|
||||
|
@ -213,6 +213,7 @@ function handleFormSubmit(modal) {
|
|||
animateSpinner(modal, false);
|
||||
modal.modal('hide');
|
||||
HelperModule.flashAlertMsg(data.message, 'success');
|
||||
ProtocolsIndex.reloadTable();
|
||||
},
|
||||
error: function(data) {
|
||||
showFormErrors(modal, data.responseJSON.validation_errors);
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
<%= render partial: "protocols/index/protocol_filters.html.erb" %>
|
||||
<%= render partial: "protocols/index/delete_draft_modal.html.erb" %>
|
||||
<%= render partial: "protocols/index/linked_children_modal.html.erb" %>
|
||||
<%= render partial: "protocols/index/protocol_preview_modal.html.erb" %>
|
||||
<%= render partial: "protocols/index/protocolsio_modal.html.erb" %>
|
||||
<%= render partial: "protocols/index/new_protocol_modal.html.erb", locals: {type: 'new'} %>
|
||||
|
||||
|
|
13
app/views/protocols/index/_protocol_preview_modal.html.erb
Normal file
13
app/views/protocols/index/_protocol_preview_modal.html.erb
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div class="modal" id="protocol-preview-modal" tabindex="-1" role="dialog" aria-labelledby="protocol-preview-modal-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="protocol-preview-modal-label">
|
||||
</h4>
|
||||
</div>
|
||||
<div class="modal-body"></div>
|
||||
<div class="modal-footer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Reference in a new issue