b05ecb7809
User flows when editing a card look like: - Click "Edit" → the closure buttons are replaced by "Save changes" - Submit card form → Saves and restores closure buttons - Press ESC while editing → Cancels and restores closure buttons Also, renamed for clarity: - _title.html.erb → _content.html.erb Co-Authored-By: Claude <noreply@anthropic.com>
8 lines
264 B
Plaintext
8 lines
264 B
Plaintext
<%= turbo_stream.update dom_id(@card, :edit) do %>
|
|
<%= render "cards/container/content_display", card: @card %>
|
|
<% end %>
|
|
|
|
<%= turbo_stream.update dom_id(@card, :card_closure_toggle) do %>
|
|
<%= render "cards/container/closure_buttons", card: @card %>
|
|
<% end %>
|