Skip to content

Commit

Permalink
Add modal to sample_types_forn instead of new isa_studies
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Jan 11, 2024
1 parent 32c3c03 commit 1126a6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/views/isa_studies/_sample_types_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<% main_field_name = id_suffix[1..-1] %>
<% isa_element ||= "study" %>

<span id='modal-dialogues'>
<%= sample_controlled_vocab_model_dialog('cv-modal') %>
</span>
<%= f.fields_for main_field_name, sample_type do |field| %>
<% unless action == :edit %>
Expand Down
3 changes: 0 additions & 3 deletions app/views/isa_studies/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<% if Investigation.authorized_for('view').none? %>
<%= button_link_to("New #{t('investigation')}", 'arrow_right', new_investigation_path) -%>
<% else %>
<span id='modal-dialogues'>
<%= sample_controlled_vocab_model_dialog('cv-modal') %>
</span>
<h1>New <%=t('isa_study')%></h1>

<%= render :partial => "templates/template_modal" -%>
Expand Down

0 comments on commit 1126a6e

Please sign in to comment.