From dbd8a0a4a1669833c828c932efe769bf95ccf350 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 15 Aug 2015 07:01:08 +0300 Subject: [PATCH] Personal profile view tweaks --- lib/initfest/views/public/personal_profiles/_form.slim | 5 ++--- lib/initfest/views/public/personal_profiles/edit.slim | 4 ++-- lib/initfest/views/public/personal_profiles/new.slim | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/initfest/views/public/personal_profiles/_form.slim b/lib/initfest/views/public/personal_profiles/_form.slim index 00ec2e1..0d5fd37 100644 --- a/lib/initfest/views/public/personal_profiles/_form.slim +++ b/lib/initfest/views/public/personal_profiles/_form.slim @@ -2,9 +2,8 @@ = f.error_notification .form-inputs - .input.file.required.personal_profile_picture - = image_tag(@profile.picture.medium.url) if @profile.picture? - = f.input :picture, as: :file, required: true, wrapper: false + = f.input :picture, as: :file, required: true, wrapper: :default + = image_tag(@profile.picture.medium.url) if @profile.picture? = f.hidden_field :picture_cache, class: 'image_preview', wrapper: false = f.input :first_name, autofocus: true diff --git a/lib/initfest/views/public/personal_profiles/edit.slim b/lib/initfest/views/public/personal_profiles/edit.slim index d48bae0..551902c 100644 --- a/lib/initfest/views/public/personal_profiles/edit.slim +++ b/lib/initfest/views/public/personal_profiles/edit.slim @@ -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' diff --git a/lib/initfest/views/public/personal_profiles/new.slim b/lib/initfest/views/public/personal_profiles/new.slim index d48bae0..551902c 100644 --- a/lib/initfest/views/public/personal_profiles/new.slim +++ b/lib/initfest/views/public/personal_profiles/new.slim @@ -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'