tabletop-companion/app/views/counters/create.turbo_stream.erb

12 lines
439 B
Plaintext
Raw Normal View History

2024-06-14 11:59:35 +00:00
<% content_target = "#{dom_id(@section)}_counters" %>
2024-06-12 16:51:57 +00:00
<%= turbo_stream.append(content_target) do %>
<%= render @counter %>
<% end %>
2024-06-14 11:59:35 +00:00
<% form_target = "#{dom_id(@section)}_add_section" %>
2024-06-12 16:51:57 +00:00
<%= turbo_stream.replace(form_target) do %>
2024-06-14 11:59:35 +00:00
<div id="<%= dom_id(@section) %>_add_section">
2024-06-12 16:51:57 +00:00
<%= render partial: "character_sheet_sections/edit_links", locals: { section: @section, parent: @section.parent_section, id: nil} %>
</div>
<% end %>