Skip to content
Browse files

adaptar vistas devise

  • Loading branch information...
1 parent b0841b6 commit 1886205620f5a8b89528de3a584a4f950c6dee11 @jquemada jquemada committed Mar 29, 2012
View
6 app/assets/stylesheets/planet.css
@@ -83,6 +83,12 @@
padding-left: 10px;
}
+#banner .user {
+ float: right;
+ color: #bfb;
+ font-size: small;
+}
+
#columns {
background: #446;
}
View
2 app/views/devise/registrations/edit.html.erb
@@ -3,7 +3,7 @@
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
<%= devise_error_messages! %>
- <div><%= f.label :email %><br />
+ <p><%= f.label :name %><br />
<%= f.text_field :name %></p>
<div><%= f.label :email %><br />
View
1 app/views/devise/registrations/new.html.erb
@@ -3,6 +3,7 @@
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
+ <p><%= f.label :name %><br />
<%= f.text_field :name %></p>
<div><%= f.label :email %><br />
View
2 app/views/layouts/application.html.erb
@@ -17,6 +17,8 @@
<div id="banner">
<%= image_tag("logo3.png") %>
<%= @page_title || "Planet Travel Site" %>
+ <div class="user">
+ <% if current_user %>
<%= link_to current_user.name,
edit_user_registration_path %> |
<%= link_to "Sign out", destroy_user_session_path %>

0 comments on commit 1886205

Please sign in to comment.
Something went wrong with that request. Please try again.