mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#876 Can't upload profile photo
This commit is contained in:
parent
cf6c24c2f9
commit
b8444f31d1
@ -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;
|
||||
}
|
||||
@ -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 }}
|
||||
|
||||
@ -39,4 +39,4 @@
|
||||
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user