Work on Field Host Profile

Not yet ready....

@laspluviosillas  - I'm working on the d&d for the Login profile. Are you able to help guide me as to what is missing? I'm a little lost by the JS.

I think the second function isn't needed unless I have the delete image ability, so, that might go...

Dave
Ok. Probably the best way to accomplish this is connecting with Carrierwave
for the profile picture.


On Thu, Jul 17, 2014 at 10:26 AM, davidclarkmoore <notifications@github.com>
wrote:

> In app/views/dashboards/_account_settings.html.haml:
>
> >
> > -      %br
> > -      %br
> > -      - if @login.class.name == "FieldHost"
> > -        %h2= t(:edit_profile_picture)
> > -        = login.file_field :profile_picture
> > +      #field_host_profile_picture_upload
> > +        - if @login.class.name == "FieldHost"
> > +          %h2= t(:edit_profile_picture)
> > +          #drop_zone= t(:drag_and_drop_photos_here)
> > +          = login.file_field :profile_picture
> > +          %h4= t(:saved_projects_photos_and_videos)
> > +
> > +      .saved-images
> > +        = render @login.profile_picture
>
> Mainly to display the profile image, once loaded. I'll need to update the
> file upload js to point somewhere, not clear where though... The
> connections between the rails app and js is still fuzzy for me here Sent
> from my phone.
> … <#147425c083c286ea_>
>  On Jul 16, 2014, at 11:13 PM, James Strong <notifications@github.com>
> wrote: In app/views/dashboards/_account_settings.html.haml: > > - %br > -
> %br > - - if @login.class.name == "FieldHost" > - %h2=
> t(:edit_profile_picture) > - = login.file_field :profile_picture > +
> #field_host_profile_picture_upload > + - if @login.class.name ==
> "FieldHost" > + %h2= t(:edit_profile_picture) > + #drop_zone=
> t(:drag_and_drop_photos_here) > + = login.file_field :profile_picture > +
> %h4= t(:saved_projects_photos_and_videos) > + > + .saved-images > + =
> render @login.profile_picture @davidclarkmoore
> <https://github.com/davidclarkmoore> This line = render
> @login.profile_picture gives me an error. My profile_picture is blank so
> ultimately this translates to= render ''`, which fails because basically
> you're telling rails to render a partial named '' which is not a valid
> partial name. What is the intention behind this line? — Reply to this email
> directly or view it on GitHub.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ipoconnection/ipo-web/pull/70/files#r15039730>.
>