{% ckan_extends %} {% block data_preview %} {% asset "ckanext-tabledesigner/tabledesigner_css" %} {% if res.url_type == 'tabledesigner' and res.datastore_active %} {% if not h.datastore_dictionary(res.id) and h.check_access('datastore_create', {'resource_id': res.id}) %}
{{ _('No fields defined: click the Data Dictionary button above to customize this table') }}
{% endif %} {% if h.check_access('resource_view_create', {'resource_id': res.id}) %} {% for view in resource_views if view.view_type == 'datatables_view' %} {% else %}
{{ _('No table view defined: click the Views button and add a Table view to view and edit data') }}
{% endfor %} {% endif %} {% endif %} {{ super() }} {% endblock %}