forked from fixin.me/fixin.me
9c51887024
Stretch inputs to column width in place of fixed sizing. Set minimum column widths for columns with form inputs. Simplify table operations by removing `thead` and adding sentinel. Manage empty table display with CSS only.
13 lines
400 B
Plaintext
13 lines
400 B
Plaintext
<% ids = {row: dom_target(:edit, @unit),
|
|
hidden_row: dom_target(@unit),
|
|
link: nil,
|
|
form_tag: dom_target(:edit, @unit, :form)} %>
|
|
|
|
<%= turbo_stream.append_all 'body' do %>
|
|
<%- tabular_form_with model: @unit, html: {id: ids[:form_tag]} do %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= turbo_stream.hide ids[:hidden_row] %>
|
|
<%= turbo_stream.after @unit, partial: 'form', locals: ids -%>
|