- <%= f.password_field :password_confirmation, autocomplete: "new-password" %>
+
+ <%= f.label :password_confirmation, "Confirm new password" %>
+ <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control" %>
- <%= f.submit "Change my password" %>
+ <%= f.submit "Change my password", class: "btn btn-primary" %>
<% end %>
diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb
index 9b486b81..ce3e7ad3 100644
--- a/app/views/devise/passwords/new.html.erb
+++ b/app/views/devise/passwords/new.html.erb
@@ -3,13 +3,13 @@
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
<%= render "devise/shared/error_messages", resource: resource %>
-
- <%= f.label :email %>
- <%= f.email_field :email, autofocus: true, autocomplete: "email" %>
+
+ <%= f.label :email %>
+ <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control" %>
- <%= f.submit "Send me reset password instructions" %>
+ <%= f.submit "Send me reset password instructions", class: "btn btn-primary" %>
<% end %>
diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb
index b7a78915..551fa1f5 100644
--- a/app/views/devise/registrations/edit.html.erb
+++ b/app/views/devise/registrations/edit.html.erb
@@ -4,12 +4,12 @@
<%= render "devise/shared/error_messages", resource: resource %>
- <%= f.label :full_name %>
+ <%= f.label :full_name %>
<%= f.text_field :full_name, autofocus: true, autocomplete: "full-name", class: "form-control" %>
- <%= f.label :email %>
+ <%= f.label :email %>
<%= f.email_field :email, autocomplete: "email", class: "form-control" %>
@@ -18,22 +18,29 @@
<% end %>
- <%= f.label :password %> (leave blank if you don't want to change it)
+ <%= f.label :password %>
<%= f.password_field :password, autocomplete: "new-password", class: "form-control" %>
<% if @minimum_password_length %>
-
- <%= @minimum_password_length %> characters minimum
+
+ leave blank if you don't want to change it
+
+
+ <%= @minimum_password_length %> characters minimum
+
<% end %>
- <%= f.label :password_confirmation %>
+ <%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control" %>
- <%= f.label :current_password %> (we need your current password to confirm your changes)
+ <%= f.label :current_password %>
<%= f.password_field :current_password, autocomplete: "current-password", class: "form-control" %>
+
+ we need your current password to confirm your changes
+
@@ -41,6 +48,8 @@
<% end %>
+
+
Cancel my account
Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: "btn btn-danger" %>
diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb
index 3a11453d..bcbf01d0 100644
--- a/app/views/devise/registrations/new.html.erb
+++ b/app/views/devise/registrations/new.html.erb
@@ -4,25 +4,27 @@
<%= render "devise/shared/error_messages", resource: resource %>
- <%= f.label :full_name %>
+ <%= f.label :full_name %>
<%= f.text_field :full_name, autofocus: true, autocomplete: "full-name", class: "form-control" %>
- <%= f.label :email %>
+ <%= f.label :email %>
<%= f.email_field :email, autocomplete: "email", class: "form-control" %>
<%= f.label :password %>
- <% if @minimum_password_length %>
- (<%= @minimum_password_length %> characters minimum)
- <% end %>
<%= f.password_field :password, autocomplete: "new-password", class: "form-control" %>
+ <% if @minimum_password_length %>
+
+ (<%= @minimum_password_length %> characters minimum)
+
+ <% end %>
- <%= f.label :password_confirmation %>
+ <%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control" %>
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb
index 59579e73..12f0f281 100644
--- a/app/views/devise/sessions/new.html.erb
+++ b/app/views/devise/sessions/new.html.erb
@@ -2,12 +2,12 @@
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
- <%= f.label :email %>
+ <%= f.label :email %>
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control" %>
- <%= f.label :password %>
+ <%= f.label :password %>
<%= f.password_field :password, autocomplete: "current-password", class: "form-control" %>
diff --git a/app/views/devise/shared/_error_messages.html.erb b/app/views/devise/shared/_error_messages.html.erb
index 00f52174..f1bbd9bd 100644
--- a/app/views/devise/shared/_error_messages.html.erb
+++ b/app/views/devise/shared/_error_messages.html.erb
@@ -1,11 +1,11 @@
<% if resource.errors.any? %>
-
+
<%= I18n.t("errors.messages.not_saved",
count: resource.errors.count,
resource: resource.class.model_name.human.downcase)
%>
-
+
<% resource.errors.full_messages.each do |message| %>
<%= message %>
diff --git a/app/views/layouts/_alerts.html.erb b/app/views/layouts/_alerts.html.erb
index 8cf8a168..4fb53720 100644
--- a/app/views/layouts/_alerts.html.erb
+++ b/app/views/layouts/_alerts.html.erb
@@ -1,7 +1,7 @@
<% if notice %>
- <%= notice %>
+ <%= notice %>
<% end %>
<% if alert %>
- <%= alert %>
+ <%= alert %>
<% end %>
\ No newline at end of file
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb
index 24b0ac9f..0b233b25 100644
--- a/app/views/layouts/_header.html.erb
+++ b/app/views/layouts/_header.html.erb
@@ -1,27 +1,29 @@
-
- <%= link_to "Astuto", "#", class: "navbar-brand" %>
-
-
-
+
+
+ <%= link_to "Astuto", "#", class: "navbar-brand" %>
+
+
+
-
-
- <% if user_signed_in? %>
-
-
- <%= current_user.email %>
-
-
-
- <% else %>
-
- <%= link_to "Sign in / Sign up", new_user_session_path, class: "nav-link" %>
-
- <% end %>
-
+
+
+ <% if user_signed_in? %>
+
+
+ <%= current_user.full_name %>
+
+
+
+ <% else %>
+
+ <%= link_to "Sign in / Sign up", new_user_session_path, class: "nav-link" %>
+
+ <% end %>
+
+
\ No newline at end of file
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index a67458e7..cb795356 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -12,7 +12,9 @@
<%= render "layouts/header" %>
<%= render "layouts/alerts" %>
-
- <%= yield %>
+
+
+ <%= yield %>
+