{% set theme_colors = theme_settings().colors %}
{{- csrf_field|safe }}

{{form_title}}

{# Note: See jsapi/search/events.js for Javascript relating to this form; # it is largely shared with the "Save Search" modal. #} {%- for src_id, source in config.sources.iteritems() %} {%- for mbx_id, settings in source.mailbox.iteritems() %} {%- if tag.tid and settings.primary_tag == tag.tid %} {%- endif %} {%- endfor %} {%- endfor %} {################ FIXME - THIS IS THE FUN STUFF! ##################### {%- if tag.type == 'mailbox' %}

{{_("Mailbox Settings")}}

{%- endif %} {%- if tag.type == 'tag' %}

{{_("Filters and Saved Searches")}}

{%- endif %} ######################################################################} {%- if tag.type in ('tag', 'attribute', 'inbox', 'spam', 'trash', 'drafts', 'blank') %} {%- endif %}

{%- if state.command_url == "/tags/add/" %} {%- else %} {%- endif %} {%- if state.command_url == "/tags/" and tag.type in ('tag', 'attribute') and not tag.subtags %} {%- endif %}