mirror of
https://github.com/we-promise/sure.git
synced 2026-05-07 12:54:04 +00:00
* fix: enable and persist notes on split child transactions (#1535) * fix: enable tags on split child transactions and new tests for split child notes + tags * Update app/components/DS/dialog_controller.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Xing Hong <39619359+xingxing21@users.noreply.github.com> * fix(transactions): only stream notes frame when notes params are submitted * fix(transactions): address PR review issues in notes stream and tests --------- Signed-off-by: Xing Hong <39619359+xingxing21@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
14 lines
503 B
Plaintext
14 lines
503 B
Plaintext
<%# locals: (entry:, can_annotate:) %>
|
|
<%= turbo_frame_tag dom_id(entry, :notes) do %>
|
|
<%= styled_form_with model: entry,
|
|
url: transaction_path(entry),
|
|
data: { controller: "auto-submit-form" } do |f| %>
|
|
<%= f.text_area :notes,
|
|
label: t("transactions.show.note_label"),
|
|
placeholder: t("transactions.show.note_placeholder"),
|
|
rows: 5,
|
|
disabled: !can_annotate,
|
|
"data-auto-submit-form-target": "auto" %>
|
|
<% end %>
|
|
<% end %>
|