{% extends 'admin/core_custom/base_edit.html.twig' %} {% trans_default_domain 'admin' %} {% block actions %} {% endblock %} {% block sonata_form_actions %} {% if object.lastRefresh %}
{{ 'imports.edit.lastRefresh'|trans }} {{ object.lastRefresh|date('commons.date_time_format'|trans) }}
{% endif %} {% set jsonCacheUntil = object.getJsonCachedUntil %} {% if object.getSourceType in ['json', 'osm'] and jsonCacheUntil %}{{ 'imports.edit.jsonCached'|trans({time: jsonCacheUntil|date('commons.time_format'|trans) }) }}
{% endif %} {% if object.id != "" and object.ontologyMapping|length > 0 %} {% endif %} {% set class = object.ontologyMapping|length > 0 ? 'btn-default' : 'btn-primary' %} {% if object.id != "" %} {{ 'imports.edit.delete'|trans }} {% endif %} {% endblock %}