Retrospring/app/views/user/edit.html.haml

33 lines
1.4 KiB
Plaintext
Raw Normal View History

2014-11-02 11:52:19 -08:00
.container.j2-page
= render 'settings_tabs'
.col-md-9.col-xs-12.col-sm-9
= render 'layouts/messages'
2014-11-11 11:01:24 -08:00
.panel.panel-default
.panel-body
2014-12-29 02:21:43 -08:00
= bootstrap_form_for(current_user, url: {action: "edit"}, :html => { :multipart => true }, method: "patch") do |f|
2014-11-11 11:01:24 -08:00
= f.text_field :display_name, label: "Your name"
2014-12-29 04:52:19 -08:00
.media
.pull-left
%div.img-rounded.profile--img{style: 'width:100px;height:100px;overflow:hidden;margin-left:5px:'}
2014-12-29 05:57:16 -08:00
%img#profile-picture-preview{src: current_user.profile_picture.url(:medium), style: 'width: 100%; height: 100%'}
2014-12-29 04:52:19 -08:00
.media-body
= f.file_field :profile_picture
.well#profile-picture-crop-controls{style: 'display: none;'}
%strong Adjust image
2014-12-29 05:57:16 -08:00
%img#profile-picture-cropper{src: current_user.profile_picture.url(:medium)}
2014-12-29 02:21:43 -08:00
2014-12-26 15:19:55 -08:00
= f.text_field :motivation_header, label: "Motivation header", placeholder: 'Ask me anything!'
2014-11-29 13:34:11 -08:00
2014-12-26 15:19:55 -08:00
= f.text_field :website, label: "Website", placeholder: 'http://bad-dragon.com'
2014-12-26 15:19:55 -08:00
= f.text_field :location, label: "Location", placeholder: 'Germoney'
2014-12-26 15:19:55 -08:00
= f.text_area :bio, label: "Bio", placeholder: 'In Bio war ich nie gut x--DD'
2014-12-29 05:50:25 -08:00
- for attrib in %i(crop_x crop_y crop_w crop_h)
= f.hidden_field attrib, id: attrib
2014-11-11 11:01:24 -08:00
= f.submit "Save settings", class: 'btn btn-primary'