2011-12-19 22:32:59 +01:00
|
|
|
.ui-box.width-100p
|
|
|
|
%h3= @user.name
|
2011-12-20 21:47:09 +01:00
|
|
|
= form_for @user, :url => profile_update_path, :method => :put do |f|
|
2011-12-19 22:32:59 +01:00
|
|
|
.data
|
2011-12-20 21:47:09 +01:00
|
|
|
.left
|
|
|
|
-if @user.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2011-10-20 00:34:05 +02:00
|
|
|
|
2011-12-20 21:47:09 +01: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 22:32:59 +01:00
|
|
|
.buttons
|
|
|
|
= f.submit 'Save', :class => "grey-button"
|
2011-10-20 00:34:05 +02:00
|
|
|
|