{# Fields of a built-in widget. vars: key, values, title, prefix, and resources / links (choices) #} {% set choices = resources if key == 'dashboards.counts' else links %}
{% if key == 'dashboards.note' %}
{% else %}
{{ __('Lists to count') if key == 'dashboards.counts' else __('Links') }} {% if choices %}
{% set picked = values.get('resources' if key == 'dashboards.counts' else 'links', []) %} {% for value, label in choices.items() %} {% endfor %}
{% else %}

{{ __('There is nothing you can pick here yet.') }}

{% endif %}
{% endif %}