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'