Finished adding user profile stuff

This commit is contained in:
Will Bradley 2012-09-03 21:56:37 -07:00
parent 33a9363b0d
commit 1e4dcfd9f3
4 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,11 @@
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
<%= devise_error_messages! %>
<div class="field">
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>

View File

@ -3,6 +3,11 @@
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
<div class="field">
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>

View File

@ -10,6 +10,8 @@
<div id="header">
<a href="/users">Users</a>
<a href="/door_logs">Logs</a>
<%= link_to 'Profile', edit_user_registration_path if user_signed_in? %>
<%= link_to 'Sign out', destroy_user_session_path, :method => :delete if user_signed_in? %>
</div>
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>

View File

@ -19,6 +19,6 @@
<%= @user.card_permissions %>
</p>
<%= link_to 'Upload to Door', upload_path(user) %>
<%= link_to 'Upload to Door', upload_path(@user) %>
<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', users_path %>