2015-05-14 00:02:19 +02:00
|
|
|
- provide(:title, generate_title("Profile Settings"))
|
2014-11-02 20:52:19 +01:00
|
|
|
.container.j2-page
|
|
|
|
= render 'settings_tabs'
|
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
2014-12-13 16:03:18 +01:00
|
|
|
= render 'layouts/messages'
|
2014-11-11 20:01:24 +01:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
2014-12-29 11:21:43 +01:00
|
|
|
= bootstrap_form_for(current_user, url: {action: "edit"}, :html => { :multipart => true }, method: "patch") do |f|
|
2014-11-11 20:01:24 +01:00
|
|
|
|
2015-06-07 15:10:17 +02:00
|
|
|
= f.text_field :display_name, label: t('views.settings.profile.displayname')
|
2014-11-11 20:01:24 +01:00
|
|
|
|
2015-05-16 00:39:33 +02:00
|
|
|
.media#profile-picture-media
|
2014-12-29 13:52:19 +01:00
|
|
|
.pull-left
|
2014-12-29 16:29:46 +01:00
|
|
|
%img.img-rounded.profile--img{src: current_user.profile_picture.url(:medium)}
|
2014-12-29 13:52:19 +01:00
|
|
|
.media-body
|
2015-06-08 16:05:20 +02:00
|
|
|
= f.file_field :profile_picture, label: t('views.settings.profile.avatar')
|
2014-12-29 13:52:19 +01:00
|
|
|
|
2014-12-29 16:29:46 +01:00
|
|
|
.row#profile-picture-crop-controls{style: 'display: none;'}
|
|
|
|
.col-sm-10.col-md-8
|
2015-06-07 15:10:17 +02:00
|
|
|
%strong= t('views.settings.profile.avatar_adjust')
|
2014-12-29 16:29:46 +01:00
|
|
|
%img#profile-picture-cropper{src: current_user.profile_picture.url(:medium)}
|
|
|
|
.col-sm-2.col-md-4
|
|
|
|
.btn-group
|
|
|
|
%button#cropper-zoom-out.btn.btn-inverse{type: :button}
|
|
|
|
%i.fa.fa-search-minus
|
|
|
|
%button#cropper-zoom-in.btn.btn-inverse{type: :button}
|
|
|
|
%i.fa.fa-search-plus
|
2014-12-29 11:21:43 +01:00
|
|
|
|
2015-05-16 00:39:33 +02:00
|
|
|
.media#profile-header-media
|
2015-05-08 17:44:16 +02:00
|
|
|
.pull-left
|
|
|
|
%img.img-rounded.header--img{src: current_user.profile_header.url(:mobile)}
|
|
|
|
.media-body
|
2015-06-08 16:05:20 +02:00
|
|
|
= f.file_field :profile_header, label: t('views.settings.profile.header')
|
2015-05-08 17:44:16 +02:00
|
|
|
|
|
|
|
.row#profile-header-crop-controls{style: 'display: none;'}
|
|
|
|
.col-sm-10.col-md-8
|
2015-06-07 15:10:17 +02:00
|
|
|
%strong= t('views.settings.profile.header_adjust')
|
2015-05-08 17:44:16 +02:00
|
|
|
%img#profile-header-cropper{src: current_user.profile_header.url(:web)}
|
|
|
|
.col-sm-2.col-md-4
|
|
|
|
.btn-group
|
2015-05-08 18:14:54 +02:00
|
|
|
%button#cropper-header-zoom-out.btn.btn-inverse{type: :button}
|
2015-05-08 17:44:16 +02:00
|
|
|
%i.fa.fa-search-minus
|
2015-05-08 18:14:54 +02:00
|
|
|
%button#cropper-header-zoom-in.btn.btn-inverse{type: :button}
|
2015-05-08 17:44:16 +02:00
|
|
|
%i.fa.fa-search-plus
|
|
|
|
|
2015-06-07 15:10:17 +02:00
|
|
|
= f.text_field :motivation_header, label: t('views.settings.profile.motivation'), placeholder: t('views.settings.profile.placeholder.motivation')
|
2014-11-29 22:34:11 +01:00
|
|
|
|
2015-06-07 15:10:17 +02:00
|
|
|
= f.text_field :website, label: t('views.settings.profile.website'), placeholder: 'http://example.com'
|
2014-12-01 20:47:10 +01:00
|
|
|
|
2015-06-07 15:10:17 +02:00
|
|
|
= f.text_field :location, label: t('views.settings.profile.location'), placeholder: t('views.settings.profile.placeholder.location')
|
2014-12-01 20:47:10 +01:00
|
|
|
|
2015-06-07 15:10:17 +02:00
|
|
|
= f.text_area :bio, label: t('views.settings.profile.bio'), placeholder: t('views.settings.profile.placeholder.bio')
|
2014-12-01 20:47:10 +01:00
|
|
|
|
2015-08-25 20:27:06 +02:00
|
|
|
= f.check_box :show_foreign_themes, label: 'Render other user themes when visiting their profile'
|
|
|
|
|
2014-12-29 14:50:25 +01:00
|
|
|
- for attrib in %i(crop_x crop_y crop_w crop_h)
|
|
|
|
= f.hidden_field attrib, id: attrib
|
|
|
|
|
2015-05-08 17:44:16 +02:00
|
|
|
- for attrib in %i(crop_h_x crop_h_y crop_h_w crop_h_h)
|
|
|
|
= f.hidden_field attrib, id: attrib
|
|
|
|
|
2015-06-07 15:10:17 +02:00
|
|
|
= f.submit t('views.actions.save'), class: 'btn btn-primary'
|