{% set admin_user = hookable_metadata.context.resource %} {{ form_label(hookable_metadata.context.form.avatar) }}
{% if admin_user.avatar is not null and admin_user.avatar.path is not empty %}
{% else %}
{% endif %}
{{ form_widget(hookable_metadata.context.form.avatar) }} {% if admin_user.id is not null and admin_user.avatar is not null and admin_user.avatar.path is not empty %} {% endif %}