{%- if data.options.widgetGroups -%}
    {%- for label, widgets in data.options.widgetGroups -%}
  • {{ __ns('apostrophe', label) }}
      {%- for name in widgets -%} {%- set options = data.options.widgets[name] -%}
    • {{ options.addLabel or __ns('apostrophe', data.widgetManagers[name].label) }}
    • {%- endfor -%}
  • {%- endfor -%}
{%- else -%}
    {%- for name, options in data.options.widgets -%} {%- if data.widgetManagers[name] -%} {%- if not options.readOnly -%}
  • {{ options.addLabel or __ns('apostrophe', data.widgetManagers[name].label) }}
  • {% endif %} {%- else -%} {{ apos.log("Your area contains a widget of type " + name + " but there is no manager for that type. Maybe you forgot to configure the " + name + "-widgets module?") }} {%- endif -%} {%- endfor -%}
{%- endif -%}