#876 Can't upload profile photo

This commit is contained in:
Diatrex 2020-02-12 17:03:12 +03:00
parent cf6c24c2f9
commit b8444f31d1
3 changed files with 10 additions and 8 deletions

View File

@ -3,3 +3,8 @@
border-color: #343a40 #343a40 #343a40; border-color: #343a40 #343a40 #343a40;
color: white!important; 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" %} {% extends "theme::layouts/default" %}
{% block content %} {% block content %}
{% if profile_photo == "" %} {% set profile_photo = profiles.file %}
{% set profile_photo = img('visiosoft.module.profile::images/profile-default.png').url %} {% if profile_photo %}
{% set profile_photo = file(profile_photo.id).url %}
{% else %} {% else %}
{% set profile_photo = profiles.file.url %} {% set profile_photo = img('visiosoft.module.profile::images/profile-default.png').url %}
{% endif %} {% endif %}
<div class="row"> <div class="row">
@ -122,10 +123,6 @@
</label> </label>
{{ profileForm.fields.land_phone.input|raw }} {{ profileForm.fields.land_phone.input|raw }}
</div> </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"> <div class=" form-group">
<label class="control-label font-weight-bold">{{ trans("visiosoft.module.profile::field.identification_number.name") }}</label> <label class="control-label font-weight-bold">{{ trans("visiosoft.module.profile::field.identification_number.name") }}</label>
{{ profileForm.fields.identification_number.input|raw }} {{ profileForm.fields.identification_number.input|raw }}