tabletop-companion/app/views/character_sheet_sections/new.turbo_stream.erb

7 lines
281 B
Plaintext
Raw Permalink Normal View History

<% target = @parent_section.present? ? "#{dom_id(@parent_section)}_add_section" : "character_sheet_add_section" %>
<%= turbo_stream.replace(target) do %>
<div id="<%= target %>">
<%= render partial: "form", locals: { button_text: t(".create_section") } %>
</div>
<% end %>