Commit 29d31806 authored by Niklas de Vries's avatar Niklas de Vries

Merge branch 'feature/add-mp3' into 'master'

fix edit form with null value

See merge request !8
parents 88776a44 518e7b98
{% block cwd_image_type_widget %}
{% set imageSrc = form.vars.data %}
{% set type = imageSrc.mediatype|split('/')[0] %}
{% set type = '' %}
{% if imageSrc is not null %}
{% set type = imageSrc.mediatype|split('/')[0] %}
{% endif %}
<div class="row">
<div class="col-md-{{ form.vars.attr.imagecols|default(2) }}">
<div class="fileinput fileinput-{% if imageSrc is not null %}exists{% else %}new{% endif %}" data-provides="fileinput" data-name="{{ form.vars.full_name }}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment