UI and naming changes

This commit is contained in:
Karol Selak 2021-03-21 11:40:53 +01:00
parent a5e7fef642
commit dace874f4f
12 changed files with 22 additions and 18 deletions

View file

@ -1,2 +1,2 @@
<h1>Sessions#create</h1>
<h3>Sessions#create</h3>
<p>Find me in app/views/sessions/create.html.erb</p>

View file

@ -1,8 +1,9 @@
<h1>Login</h1>
<h3>Login</h3>
<%= form_tag '/login' do %>
<%= label_tag :email%>
<%= text_field_tag :email %>
<%= label_tag :password%>
<%= password_field_tag :password%>
<%= submit_tag "Login"%>
<%end%>
<%end%>
<%= button_to "Password recovery", '/password_recovery_request', method: :get%>

View file

@ -1,9 +1,8 @@
<h1>Welcome</h1>
<h3>Welcome</h3>
<% if logged_in? %>
<h1>You are Logged In, <%= current_user.email %></h1>
You are Logged In, <%= current_user.email %>
<%= button_to "Logout", '/logout', method: :get%>
<%else%>
<%= button_to "Login", '/login', method: :get%>
<%= button_to "Sign Up", '/users/new', method: :get%>
<%= button_to "Password recovery", '/password_recovery_request', method: :get%>
<%end%>