{% ckan_extends %} {% block basic_fields_url %} {% set is_upload = (data.url_type == 'upload') %} {% set field_url='url' %} {% set field_upload='upload' %} {% set field_clear='clear_upload' %} {% set is_upload_enabled=h.uploads_enabled() %} {% set is_url=data.url and not is_upload %} {% set upload_label=_('File') %} {% set url_label=_('URL') %} {% set placeholder = placeholder if placeholder else _('http://example.com/my-image.jpg') %} {% set url_label = url_label or _('Image URL') %} {% set upload_label = upload_label or _('Image') %} {% if is_upload_enabled %}