2014-11-14 11:58:36 +01:00
|
|
|
.container
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1 Edit your profile
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
= semantic_form_for(@user, url: user_path(@user.id)) do |f|
|
2017-03-28 17:54:27 +03:00
|
|
|
= f.input :name, as: :string, hint: 'This is your real name.'
|
|
|
|
|
= f.input :nickname, as: :string, hint: 'This is how the other users see you, not your real name'
|
2015-05-02 14:57:30 +02:00
|
|
|
.control-label
|
|
|
|
|
= "Avatar"
|
2017-03-11 13:25:39 +05:30
|
|
|
= image_tag(@user.gravatar_url(size: '48'), title: "Yo #{@user.name}!", alt: '')
|
2015-05-02 14:57:30 +02:00
|
|
|
= link_to 'Change your avatar here', 'https://gravatar.com'
|
2014-11-04 17:42:47 +01:00
|
|
|
= f.input :affiliation, as: :string,
|
|
|
|
|
hint: 'This could be a company, a user group, or nothing at all.'
|
2017-02-05 16:00:45 +05:30
|
|
|
= f.input :biography, input_html: { rows: 5, data: { provide: 'markdown-editable' } },
|
2016-08-09 00:20:18 +02:00
|
|
|
hint: markdown_hint
|
2014-11-04 17:42:47 +01:00
|
|
|
You have used
|
|
|
|
|
%span#bio_length
|
2016-05-15 13:17:53 +03:00
|
|
|
= @user.biography ? @user.biography.split.length : 0
|
2014-11-04 17:42:47 +01:00
|
|
|
words. Biographies are limited to 150 words.
|
|
|
|
|
%br
|
|
|
|
|
%br
|
2014-11-14 11:58:36 +01:00
|
|
|
= f.action :submit, as: :button, label: 'Update', button_html: {class: 'btn btn-primary'}
|