<div id="card-alert" class="card red">
    <div class="card-content white-text">
        <div class="errors"></div>
    </div>
</div>
<div id="profile_picture_upload">
    {{ form_start(form, { 'action': path('profile_logo'), 'attr': { 'class': 'fos_user_profile_edit' } }) }}
     <div class="col s6">
        <label for="profile_logo_file" class="btn btn-default custom-file-upload">
        <i class="fa fa-cloud-upload"></i> Importer une photo
        </label>
        {{ form_widget(form.file) }}
        {{ form_rest(form) }}
    </div>
    <div class="col s6" style="text-align: center;">
        <div id="preview_profile_picture">
            <img src="" class="resize-image responsive-img">
        </div>
        <button class="hide btn btn-default btn-save-profile-picture" type="submit">
            <i class="fa fa-floppy-o" aria-hidden="true"></i> Sauvegarder
        </button>
    </div>
    {{ form_end(form) }}
</div>