From b07832adda6480174b21cf74f89032d08133eee5 Mon Sep 17 00:00:00 2001 From: 24c02 <163450896+24c02@users.noreply.github.com> Date: Fri, 19 Dec 2025 14:49:14 -0500 Subject: [PATCH] fix batch postage selection --- app/frontend/entrypoints/application.js | 6 +- .../letter/batches/process_letter.html.erb | 61 ++++++++----------- package.json | 5 +- yarn.lock | 19 ++++++ 4 files changed, 52 insertions(+), 39 deletions(-) diff --git a/app/frontend/entrypoints/application.js b/app/frontend/entrypoints/application.js index 31e2ff4..c278233 100644 --- a/app/frontend/entrypoints/application.js +++ b/app/frontend/entrypoints/application.js @@ -1 +1,5 @@ -import '~/js/click-to-copy.js' \ No newline at end of file +import Alpine from 'alpinejs' +import '~/js/click-to-copy.js' + +window.Alpine = Alpine +Alpine.start() \ No newline at end of file diff --git a/app/views/letter/batches/process_letter.html.erb b/app/views/letter/batches/process_letter.html.erb index 5e935a9..386e1ed 100644 --- a/app/views/letter/batches/process_letter.html.erb +++ b/app/views/letter/batches/process_letter.html.erb @@ -60,8 +60,8 @@ <% end %> - <%= form_with(model: @batch, url: process_letter_batch_path(@batch), method: :post) do |f| %> -