Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dont render image if there is none :)

  • Loading branch information...
commit ca32a7f4b1e56b3172a88524c9c168e5e84d86e3 1 parent f3a07e1
@elHornair elHornair authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Resources/views/Form/fields.html.twig
View
4 Resources/views/Form/fields.html.twig
@@ -1,4 +1,6 @@
{% block phpcr_odm_image_widget %}
{{ form_widget(form) }}
- <img src="{{ form.vars.data | imagine_filter('image_upload_thumbnail') }}" alt="" />
+ {% if form.vars.data %}
+ <img src="{{ form.vars.data | imagine_filter('image_upload_thumbnail') }}" alt="" />
+ {% endif %}
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.