Skip to content

Commit

Permalink
adaptar vistas devise
Browse files Browse the repository at this point in the history
  • Loading branch information
jquemada committed Mar 29, 2012
1 parent b0841b6 commit 1886205
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/planet.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
padding-left: 10px;
}

#banner .user {
float: right;
color: #bfb;
font-size: small;
}

#columns {
background: #446;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/registrations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
1 change: 1 addition & 0 deletions app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 1886205

Please sign in to comment.