Personal profile view tweaks

This commit is contained in:
Petko Bordjukov 2015-08-15 07:01:08 +03:00
parent 0844c1d999
commit dbd8a0a4a1
3 changed files with 6 additions and 7 deletions

View File

@ -2,9 +2,8 @@
= f.error_notification = f.error_notification
.form-inputs .form-inputs
.input.file.required.personal_profile_picture = f.input :picture, as: :file, required: true, wrapper: :default
= 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, wrapper: false
= f.hidden_field :picture_cache, class: 'image_preview', wrapper: false = f.hidden_field :picture_cache, class: 'image_preview', wrapper: false
= f.input :first_name, autofocus: true = f.input :first_name, autofocus: true

View File

@ -1,5 +1,5 @@
- content_for(:title) { ":: #{t :personal_profile}" } - content_for(:title) { PersonalProfile.model_name.human }
h2.entry-title = t :personal_profile h2.entry-title = PersonalProfile.model_name.human
= render 'form' = render 'form'

View File

@ -1,5 +1,5 @@
- content_for(:title) { ":: #{t :personal_profile}" } - content_for(:title) { PersonalProfile.model_name.human }
h2.entry-title = t :personal_profile h2.entry-title = PersonalProfile.model_name.human
= render 'form' = render 'form'