Fixes #1081, Add more profile info on user Profile
This commit is contained in:
parent
7ea168fef4
commit
18d0f6215b
9 changed files with 133 additions and 25 deletions
|
|
@ -2,24 +2,18 @@
|
|||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
%h1 Edit your profile
|
||||
%h1
|
||||
Edit your profile
|
||||
= link_to 'My Profile', user_path(@user), class: 'btn btn-primary pull-right'
|
||||
.row
|
||||
.col-md-12
|
||||
= semantic_form_for(@user, url: user_path(@user.id)) do |f|
|
||||
= f.input :name, as: :string
|
||||
= f.input :nickname, as: :string
|
||||
.control-label
|
||||
= "Avatar"
|
||||
= image_tag(@user.gravatar_url(size: '48'), title: "Yo #{@user.name}!", :alt => '')
|
||||
= link_to 'Change your avatar here', 'https://gravatar.com'
|
||||
= f.input :affiliation, as: :string,
|
||||
hint: 'This could be a company, a user group, or nothing at all.'
|
||||
= f.input :biography, input_html: { rows: 5, data: { provide: 'markdown-editable' } },
|
||||
hint: markdown_hint
|
||||
You have used
|
||||
%span#bio_length
|
||||
= @user.biography ? @user.biography.split.length : 0
|
||||
words. Biographies are limited to 150 words.
|
||||
%br
|
||||
%br
|
||||
= f.action :submit, as: :button, label: 'Update', button_html: {class: 'btn btn-primary'}
|
||||
%ul.nav.nav-pills
|
||||
%li.active
|
||||
= link_to 'Personal Info', edit_user_path({ tab: 'personal_info' }), remote: true, id: 'personal_info'
|
||||
%li
|
||||
= link_to 'Social Media', edit_user_path({ tab: 'social_media' }), remote: true, id: 'social_media'
|
||||
%li
|
||||
= link_to 'Social Code', edit_user_path({ tab: 'social_code' }), remote: true, id: 'social_code'
|
||||
%br/
|
||||
#form
|
||||
= render partial: 'personal_info_fields', locals: { user: @user }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue