HOLD: Use "Submit" label on /new form buttons#1863
Draft
maebeale wants to merge 2 commits into
Draft
Conversation
Replaces "Create <Model>" 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 <noreply@anthropic.com>
Catches the create-branch label introduced on main so all new-record forms read "Submit" consistently. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
maebeale
commented
Jun 22, 2026
| <div class="ml-auto flex items-center gap-3"> | ||
| <%= 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" %> |
Collaborator
Author
There was a problem hiding this comment.
🤖 From Claude: This partial is shared by new and edit, so only the non-persisted branch changes to "Submit" — the edit label ("Save changes") is intentionally preserved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the goal of this PR and why is this important?
How did you approach the change?
"Create …"submit labels with"Submit"on forms served from/newendpointsnewandedit, only the new-record branch was changed; the edit label (e.g. "Save changes" / "Update") is preservedforms/new.html.erb— "Create form" → "Submit"payments/_form.html.erb(rendered only bypayments/new) — "Create Payment" → "Submit"allocations/new.html.erb— "Create Allocation" → "Submit"refunds/new.html.erb— "Create Refund" → "Submit" (kept "Refund via Stripe" branch)scholarships/_form.html.erb— new branch "Create scholarship" → "Submit"event_registrations/_form.html.erb— new branch "Create registration" → "Submit"Anything else to add?
payments/_allocation_form.html.erbanddiscounts/_allocation_form.html.erb("Create Payment"/"Create Discount") render via the customallocation_formturbo action, not a/newroute.f.button :submit(no explicit label); simple_form auto-renders these as "Create <Model>" on new / "Update <Model>" on edit. Switching those to "Submit" would require a per-formpersisted?conditional in each shared partial — held off pending direction.🤖 Generated with Claude Code