Form button text fix
This commit is contained in:
parent
ab0007651b
commit
43aaed3162
|
@ -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 %>
|
||||||
|
|
|
@ -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") } %>
|
||||||
|
|
Loading…
Reference in New Issue