OpenFest: Tweak the personal profile view

This commit is contained in:
Petko Bordjukov 2015-08-15 01:02:16 +03:00
parent 9c607b6ccd
commit 1da6c0bd20
3 changed files with 15 additions and 17 deletions

View File

@ -33,11 +33,8 @@
display: block; display: block;
border: 1px solid #CCC; border: 1px solid #CCC;
background-color: #F1F1F1; background-color: #F1F1F1;
margin-left: 12em;
} margin-bottom: 10px;
img+input.image_preview {
margin-left: 12.7em;
} }
} }

View File

@ -2,17 +2,18 @@
= f.error_notification = f.error_notification
.form-inputs .form-inputs
.input.file.required.personal_profile_picture
= image_tag(@profile.picture.medium.url) if @profile.picture? = image_tag(@profile.picture.medium.url) if @profile.picture?
= f.input :picture, as: :file, required: true = f.input :picture, as: :file, required: true, wrapper: false
= f.hidden_field :picture_cache
= f.hidden_field :picture_cache, class: 'image_preview', wrapper: false
= f.input :first_name, autofocus: true = f.input :first_name, autofocus: true
= f.input :last_name = f.input :last_name
= f.input :public_email = f.input :public_email
= f.input :organisation = f.input :organisation
= f.input :github = f.input :github
= f.input :twitter = f.input :twitter
= f.input :mobile_phone = f.input :mobile_phone, input_html: {value: @profile.mobile_phone.try(:phony_formatted, format: :international)}
= f.input :biography = f.input :biography
.form-actions .form-actions