2020-04-25 08:04:23 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2020-05-10 13:27:39 -07:00
|
|
|
= bootstrap_form_for(current_user, url: { action: :edit }, html: { multipart: true }, method: :patch) do |f|
|
2020-04-25 08:04:23 -07:00
|
|
|
|
|
|
|
.media#profile-picture-media
|
|
|
|
.pull-left
|
2020-05-10 01:40:48 -07:00
|
|
|
%img.avatar-lg.mr-3{ src: current_user.profile_picture.url(:medium) }
|
2020-04-25 08:04:23 -07:00
|
|
|
.media-body
|
2022-01-29 16:29:50 -08:00
|
|
|
= f.file_field :profile_picture, accept: APP_CONFIG[:accepted_image_formats].join(",")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-01-05 17:54:12 -08:00
|
|
|
.row.d-none#profile-picture-crop-controls
|
2020-04-25 08:04:23 -07:00
|
|
|
.col-sm-10.col-md-8
|
2022-01-29 16:29:50 -08:00
|
|
|
%strong= t(".adjust.profile_picture")
|
2020-05-10 01:40:48 -07:00
|
|
|
%img#profile-picture-cropper{ src: current_user.profile_picture.url(:medium) }
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2020-05-06 17:30:50 -07:00
|
|
|
.row.mb-2#profile-header-media
|
|
|
|
.col
|
2020-05-10 01:40:48 -07:00
|
|
|
%img.mw-100.mr-3{ src: current_user.profile_header.url(:mobile) }
|
2020-05-06 17:30:50 -07:00
|
|
|
.col-xs-12.mt-3.mt-sm-0.pl-3.pr-3
|
2022-01-29 16:29:50 -08:00
|
|
|
= f.file_field :profile_header, accept: APP_CONFIG[:accepted_image_formats].join(",")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-01-05 17:54:12 -08:00
|
|
|
.row.d-none#profile-header-crop-controls
|
2020-04-25 08:04:23 -07:00
|
|
|
.col-sm-10.col-md-8
|
2022-01-29 16:29:50 -08:00
|
|
|
%strong= t(".adjust.profile_header")
|
2020-05-10 01:40:48 -07:00
|
|
|
%img#profile-header-cropper{ src: current_user.profile_header.url(:web) }
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-01-29 16:14:45 -08:00
|
|
|
= f.check_box :show_foreign_themes
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2020-05-17 13:09:09 -07:00
|
|
|
- %i[profile_picture_x profile_picture_y profile_picture_w profile_picture_h].each do |attrib|
|
2020-04-25 08:04:23 -07:00
|
|
|
= f.hidden_field attrib, id: attrib
|
|
|
|
|
2020-05-17 13:09:09 -07:00
|
|
|
- %i[profile_header_x profile_header_y profile_header_w profile_header_h].each do |attrib|
|
2020-04-25 08:04:23 -07:00
|
|
|
= f.hidden_field attrib, id: attrib
|
|
|
|
|
2022-01-29 16:14:45 -08:00
|
|
|
= f.primary
|
2021-12-19 14:51:06 -08:00
|
|
|
.card
|
|
|
|
.card-body
|
2021-12-21 14:56:57 -08:00
|
|
|
= bootstrap_form_for(current_user.profile, url: { action: :update_profile }, html: { multipart: true }, method: :patch) do |f|
|
2021-12-19 14:51:06 -08:00
|
|
|
|
2022-01-29 16:14:45 -08:00
|
|
|
= f.text_field :display_name
|
2021-12-19 14:51:06 -08:00
|
|
|
|
2022-01-29 16:14:45 -08:00
|
|
|
= f.text_field :motivation_header
|
2021-12-19 14:51:06 -08:00
|
|
|
|
2022-01-29 16:14:45 -08:00
|
|
|
= f.text_field :website
|
2021-12-19 14:51:06 -08:00
|
|
|
|
2022-01-29 16:14:45 -08:00
|
|
|
= f.text_field :location
|
2021-12-19 14:51:06 -08:00
|
|
|
|
2022-01-29 16:14:45 -08:00
|
|
|
= f.text_area :description
|
2021-12-19 14:51:06 -08:00
|
|
|
|
2022-01-29 16:14:45 -08:00
|
|
|
= f.primary
|