2011-12-19 21:32:59 +00:00
|
|
|
.ui-box.width-100p
|
|
|
|
%h3= @user.name
|
2011-12-20 20:47:09 +00:00
|
|
|
= form_for @user, :url => profile_update_path, :method => :put do |f|
|
2011-12-19 21:32:59 +00:00
|
|
|
.data
|
2011-12-20 20:47:09 +00:00
|
|
|
.left
|
|
|
|
-if @user.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2011-10-19 22:34:05 +00:00
|
|
|
|
2011-12-20 20:47:09 +00:00
|
|
|
.form-row
|
|
|
|
= f.label :name
|
|
|
|
%br
|
|
|
|
= f.text_field :name
|
|
|
|
.form-row
|
|
|
|
= f.label :email
|
|
|
|
%br
|
|
|
|
= f.text_field :email
|
|
|
|
.form-row
|
|
|
|
= f.label :skype
|
|
|
|
%br
|
|
|
|
= f.text_field :skype
|
|
|
|
.form-row
|
|
|
|
= f.label :linkedin
|
|
|
|
%br
|
|
|
|
= f.text_field :linkedin
|
|
|
|
.form-row
|
|
|
|
= f.label :twitter
|
|
|
|
%br
|
|
|
|
= f.text_field :twitter
|
|
|
|
|
|
|
|
.right
|
|
|
|
= image_tag gravatar_icon(current_user.email,64), :width => 64, :style => "margin:5px; border:5px solid #eee;"
|
|
|
|
.clear
|
2011-12-19 21:32:59 +00:00
|
|
|
.buttons
|
|
|
|
= f.submit 'Save', :class => "grey-button"
|
2011-10-19 22:34:05 +00:00
|
|
|
|