Skip to content

Commit

Permalink
Use "Log In" on the login form button (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht authored Feb 14, 2024
1 parent df89624 commit f86fae5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<%= form_with(url: login_path, method: :post, class: "flex flex-col space-y-4 w-80") do |f| %>
<%= f.email_field :email, id: "email", autofocus: true, placeholder: "Email address", class: "border border-gray-400 rounded text-black p-3"%>
<%= f.password_field :password, id: "password", autofocus: true, placeholder: "Password", class: "border border-gray-400 rounded text-black p-3"%>
<%= f.submit "Continue", class: 'border border-teal-600 rounded text-teal-600 hover:bg-teal-700 hover:text-white font-light p-4 text-center cursor-pointer' %>
<%= f.submit "Log In", class: 'border border-teal-600 rounded text-teal-600 hover:bg-teal-700 hover:text-white font-light p-4 text-center cursor-pointer' %>
<% end %>
</div>
2 changes: 1 addition & 1 deletion app/views/users/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<%= f.fields_for :personable_attributes, @person.personable do |user_fields| %>
<%= user_fields.password_field :password, id: "email", autofocus: true, placeholder: "Password", class: "border border-gray-400 rounded text-black p-3 w-full"%>
<% end %>
<%= f.submit "Continue", class: 'border border-teal-600 rounded text-teal-600 hover:bg-teal-700 hover:text-white font-light p-4 text-center cursor-pointer' %>
<%= f.submit "Sign Up", class: 'border border-teal-600 rounded text-teal-600 hover:bg-teal-700 hover:text-white font-light p-4 text-center cursor-pointer' %>
<% end %>
</div>
2 changes: 1 addition & 1 deletion test/application_system_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def login_as(user, password = "secret")
assert_current_path login_path, wait: 2
fill_in "email", with: user.person.email
fill_in "password", with: password
click_text "Continue"
click_on "Log In"
assert_current_path new_assistant_message_path(assistant), wait: 2
end

Expand Down

0 comments on commit f86fae5

Please sign in to comment.