Skip to content

Commit

Permalink
Convert turbo-frame tags to div on show obs
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Mar 18, 2024
1 parent 155f008 commit d605d92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/helpers/tabs/collection_numbers_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def show_collection_number_tab(c_n, obs)

[tag.i(c_n.format_name.t),
collection_number_path(id: c_n.id, q: q_id),
{ class: "#{tab_id(__method__.to_s)}_#{c_n.id}",
data: { turbo_frame: "_top" } }]
{ class: "#{tab_id(__method__.to_s)}_#{c_n.id}" }]
end

def collection_number_mod_tabs(c_n)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ obs_id = obs.id
<%=
unless @user.try(&:hide_specimen_stuff?) || obs.user.try(&:hide_specimen_stuff?)

tag.turbo_frame(
tag.div(
id: "observation_collection_numbers",
class: "obs-collection",
data: { controller: "section-update",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ query = Query.lookup(:HerbariumRecord, :all, observations: obs.id)
<%=
unless @user.try(&:hide_specimen_stuff?) || obs.user.try(&:hide_specimen_stuff?)

tag.turbo_frame(
tag.div(
id: "observation_herbarium_records",
class: "obs-herbarium",
data: { controller: "section-update",
Expand Down

0 comments on commit d605d92

Please sign in to comment.