Form button text fix

This commit is contained in:
Trevor Vallender 2024-04-18 20:58:38 +01:00
parent ab0007651b
commit 43aaed3162
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<%# locals: (user: User.new) -%> <%# locals: (user:, button_text:) -%>
<%= form_with model: user do |f| %> <%= form_with model: user do |f| %>
<%= f.label :username %> <%= f.label :username %>
@ -19,5 +19,5 @@
<%= f.label :password_confirmation %> <%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %> <%= f.password_field :password_confirmation %>
<%= f.submit %> <%= f.submit button_text %>
<% end %> <% end %>

View File

@ -2,4 +2,5 @@
<h1><%= t(".sign_up") %></h1> <h1><%= t(".sign_up") %></h1>
<%= render partial: "users/form", locals: { user: @user } %> <%= render partial: "users/form",
locals: { user: @user, button_text: t(".sign_up") } %>