2011-11-22 14:14:23 +01:00
|
|
|
%h2.icon
|
|
|
|
%span>
|
2011-10-08 23:36:38 +02:00
|
|
|
= @user.name
|
2011-10-20 00:34:05 +02:00
|
|
|
|
2011-11-22 14:14:23 +01:00
|
|
|
.clear
|
2011-10-20 00:34:05 +02:00
|
|
|
|
|
|
|
= form_for @user, :url => profile_edit_path, :method => :put do |f|
|
|
|
|
-if @user.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2011-11-22 14:14:23 +01:00
|
|
|
.form-row
|
|
|
|
= f.label :name
|
|
|
|
%br
|
|
|
|
= f.text_field :name
|
|
|
|
.form-row
|
|
|
|
= f.label :email
|
|
|
|
%br
|
|
|
|
= f.text_field :email
|
2011-11-07 19:21:42 +01:00
|
|
|
.form-row
|
2011-10-20 00:34:05 +02:00
|
|
|
= f.label :skype
|
|
|
|
%br
|
|
|
|
= f.text_field :skype
|
2011-11-07 19:21:42 +01:00
|
|
|
.form-row
|
2011-10-20 00:34:05 +02:00
|
|
|
= f.label :linkedin
|
|
|
|
%br
|
|
|
|
= f.text_field :linkedin
|
2011-11-07 19:21:42 +01:00
|
|
|
.form-row
|
2011-10-20 00:34:05 +02:00
|
|
|
= f.label :twitter
|
|
|
|
%br
|
|
|
|
= f.text_field :twitter
|
|
|
|
.actions
|
2011-11-22 14:14:23 +01:00
|
|
|
= f.submit 'Save', :class => "grey-button"
|
2011-10-20 00:34:05 +02:00
|
|
|
|