Permalink
Browse files

adaptar vistas devise

  • Loading branch information...
jquemada committed Mar 29, 2012
1 parent b0841b6 commit 1886205620f5a8b89528de3a584a4f950c6dee11
@@ -83,6 +83,12 @@
padding-left: 10px;
}
+#banner .user {
+ float: right;
+ color: #bfb;
+ font-size: small;
+}
+
#columns {
background: #446;
}
@@ -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 />
<%= f.email_field :email %></div>
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
@@ -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 />
<%= f.email_field :email %></div>
@@ -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 %> <% else %> <%= link_to "Sign in", new_user_session_path %> <% end %>
+ </div>
</div>
<div id="columns">
<div id="side">

0 comments on commit 1886205

Please sign in to comment.