From fdd029d9366f4253527aa20d959a7e8c21c5e8de Mon Sep 17 00:00:00 2001 From: maebeale Date: Mon, 22 Jun 2026 08:28:52 -0400 Subject: [PATCH 1/2] Use "Submit" label on /new form buttons Replaces "Create " submit labels with "Submit" on new-record forms so the call to action is consistent across creation screens. Co-Authored-By: Claude Opus 4.8 --- app/views/allocations/new.html.erb | 2 +- app/views/forms/new.html.erb | 2 +- app/views/payments/_form.html.erb | 2 +- app/views/refunds/new.html.erb | 2 +- app/views/scholarships/_form.html.erb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/allocations/new.html.erb b/app/views/allocations/new.html.erb index 53bdf5e1f0..cc393191da 100644 --- a/app/views/allocations/new.html.erb +++ b/app/views/allocations/new.html.erb @@ -41,7 +41,7 @@ <%= f.input :amount_dollars, label: "Amount ($)", input_html: { min: 0, step: 0.01, placeholder: "0.00", data: { controller: "currency-input", action: "currency-input#format" } } %>
- <%= f.button :submit, "Create Allocation", class: "btn btn-primary" %> + <%= f.button :submit, "Submit", class: "btn btn-primary" %> <% if source.present? %> <%= link_to "Cancel", payment_path(source), class: "btn btn-secondary-outline ml-2" %> <% else %> diff --git a/app/views/forms/new.html.erb b/app/views/forms/new.html.erb index 37e63dbb1f..2cee1b8fd9 100644 --- a/app/views/forms/new.html.erb +++ b/app/views/forms/new.html.erb @@ -83,7 +83,7 @@
- <%= f.submit "Create form", class: "btn btn-primary cursor-pointer" %> + <%= f.submit "Submit", class: "btn btn-primary cursor-pointer" %> <%= link_to "Cancel", forms_path, class: "btn btn-secondary-outline" %>
diff --git a/app/views/payments/_form.html.erb b/app/views/payments/_form.html.erb index 813847c663..1defbedce1 100644 --- a/app/views/payments/_form.html.erb +++ b/app/views/payments/_form.html.erb @@ -40,6 +40,6 @@ <%= f.input :check_number, input_html: { class: "bg-white" } %> <%= f.input :memo, label: "Memo", input_html: { class: "bg-white", placeholder: "Memo line on the check" } %> <% end %> -
<%= f.button :submit, "Create Payment", class: "btn btn-primary" %><%= link_to "Cancel", payments_path, class: "btn btn-secondary-outline ml-2" %>
+
<%= f.button :submit, "Submit", class: "btn btn-primary" %><%= link_to "Cancel", payments_path, class: "btn btn-secondary-outline ml-2" %>
<% end %>
diff --git a/app/views/refunds/new.html.erb b/app/views/refunds/new.html.erb index 127be3dbd3..d1a8869f42 100644 --- a/app/views/refunds/new.html.erb +++ b/app/views/refunds/new.html.erb @@ -68,7 +68,7 @@ <%= f.input :amount_dollars, label: "Amount ($)", input_html: { min: 0, step: 0.01, placeholder: "0.00", data: { controller: "currency-input", action: "currency-input#format" } } %>
- <%= f.button :submit, @payment.is_a?(ExternalProcessorPayment) ? "Refund via Stripe" : "Create Refund", class: "btn btn-primary" %> + <%= f.button :submit, @payment.is_a?(ExternalProcessorPayment) ? "Refund via Stripe" : "Submit", class: "btn btn-primary" %> <% if @payment.present? %> <%= link_to "Cancel", payment_path(@payment), class: "btn btn-secondary ml-2" %> <% else %> diff --git a/app/views/scholarships/_form.html.erb b/app/views/scholarships/_form.html.erb index 2b2102909b..49dcfc18b7 100644 --- a/app/views/scholarships/_form.html.erb +++ b/app/views/scholarships/_form.html.erb @@ -267,6 +267,6 @@
<%= link_to "Cancel", cancel_path, class: "btn btn-secondary-outline" %> - <%= f.submit f.object.persisted? ? "Save changes" : "Create scholarship", class: "btn btn-primary" %> + <%= f.submit f.object.persisted? ? "Save changes" : "Submit", class: "btn btn-primary" %>
From 8e48aaa3d03d03287e3e56def9749054193e98e7 Mon Sep 17 00:00:00 2001 From: maebeale Date: Mon, 22 Jun 2026 08:30:38 -0400 Subject: [PATCH 2/2] Use "Submit" label on event registration new form Catches the create-branch label introduced on main so all new-record forms read "Submit" consistently. Co-Authored-By: Claude Opus 4.8 --- app/views/event_registrations/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/event_registrations/_form.html.erb b/app/views/event_registrations/_form.html.erb index 13a1091ad2..776e8745bc 100644 --- a/app/views/event_registrations/_form.html.erb +++ b/app/views/event_registrations/_form.html.erb @@ -450,7 +450,7 @@
<%= link_to "Cancel", cancel_path, class: "btn btn-secondary-outline" %> - <%= f.button :submit, f.object.persisted? ? "Save changes" : "Create registration", class: "btn btn-primary" %> + <%= f.button :submit, f.object.persisted? ? "Save changes" : "Submit", class: "btn btn-primary" %>