From c83187ebb2494563078fd0feb7378efa75977ba1 Mon Sep 17 00:00:00 2001 From: Renan Costa Date: Mon, 21 Apr 2014 17:41:04 -0300 Subject: [PATCH] Modifying the Edit User using css tooltips for the following usability standards defined --- app/views/devise/registrations/edit.html.erb | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 69 insertions(+), 17 deletions(-) diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 7b54cde..998055f 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -2,29 +2,81 @@

Edit <%= resource_name.to_s.humanize %>

-<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> +<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => "form-inline" }) do |f| %> <%= devise_error_messages! %> -
<%= f.label :name %>
- <%= f.text_field :name, :autofocus => true %>
+
+
+
+
+ <%= f.label :name %>
+ <%= f.text_field :name, :autofocus => true %> +
+
+

+ Your full name! +

+
+
+ +
+
+ <%= f.label :email %>
+ <%= f.email_field :email %> -
<%= f.label :email %>
- <%= f.email_field :email %>
+ <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> +
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
+ <% end %> +
+
+

+ Your email is the form of communication we have with you, so make sure you typed it correctly! +

+
+
+ +
+
+ <%= f.label :password %> (leave blank if you don't want to change it)
+ <%= f.password_field :password, :autocomplete => "off" %> +
+
+

+ Your password must be at least 8 characters. Strong passwords contain characters in upper and lowercase, numbers and symbols. +

+
+
+ +
+
+ <%= f.label :password_confirmation %>
+ <%= f.password_field :password_confirmation %> +
+
+

+ Confirm your password! +

+
+
- <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> -
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
- <% end %> +
+
+ <%= f.label :current_password %>
+ <%= f.password_field :current_password %> +
+
+

+ We need your current password to confirm your changes! +

+
+
+
+
-
<%= f.label :password %> (leave blank if you don't want to change it)
- <%= f.password_field :password, :autocomplete => "off" %>
-
<%= f.label :password_confirmation %>
- <%= f.password_field :password_confirmation %>
- -
<%= f.label :current_password %> (we need your current password to confirm your changes)
- <%= f.password_field :current_password %>
- -
<%= f.submit "Update", class: 'btn btn-primary' %>
+
+ <%= f.submit "Update", class: 'btn btn-primary span2' %> +
<% end %>
-- libgit2 0.21.2