Merge pull request #312 from openclassify/dia2

#876 Can't upload profile photo
This commit is contained in:
Fatih Alp 2020-02-12 17:06:15 +03:00 committed by GitHub
commit 05e54a0453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 8 deletions

View File

@ -2,4 +2,9 @@
background-color: #343a40 !important;
border-color: #343a40 #343a40 #343a40;
color: white!important;
}
/* Hide profile upload table */
.selected.file-rows-table table td:first-child ~ td {
display: none;
}

View File

@ -1,10 +1,11 @@
{% extends "theme::layouts/default" %}
{% block content %}
{% if profile_photo == "" %}
{% set profile_photo = img('visiosoft.module.profile::images/profile-default.png').url %}
{% set profile_photo = profiles.file %}
{% if profile_photo %}
{% set profile_photo = file(profile_photo.id).url %}
{% else %}
{% set profile_photo = profiles.file.url %}
{% set profile_photo = img('visiosoft.module.profile::images/profile-default.png').url %}
{% endif %}
<div class="row">
@ -122,10 +123,6 @@
</label>
{{ profileForm.fields.land_phone.input|raw }}
</div>
<div class=" form-group">
<label class="control-label font-weight-bold">{{ trans("visiosoft.module.profile::field.adv_listing_banner.name") }}</label>
{{ profileForm.fields.adv_listing_banner.input|raw }}
</div>
<div class=" form-group">
<label class="control-label font-weight-bold">{{ trans("visiosoft.module.profile::field.identification_number.name") }}</label>
{{ profileForm.fields.identification_number.input|raw }}

View File

@ -39,4 +39,4 @@
{% endif %}
</div>
</div>