{# edit_select_highlight.html #} {% extends "base.html" %} {% block content %} {% include "query_nav.html" %} {% if query_selected %}

Currently selected SQL

{{ sql }}

Proceed to results

{% comment %}
Preview count
{% endcomment %}
View results
{% endif %}

Add a new highlight

{% csrf_token %} {{ form.as_table }}

Existing highlights

{% if highlights %} {% for highlight in highlights %} {% endfor %}
Text Colour number (0-{{ N_CSS_HIGHLIGHT_CLASSES|add:"-1" }}) Delete highlight Active? Activate this one Deactivate this one
{{ highlight.text }} {{ highlight.colour }} {% include "action_only_form.html" with action="delete_highlight" pk=highlight.id button="Delete" %} {% if highlight.active %}{% endif %} {{ highlight.active|yesno }} {% if highlight.active %}{% endif %} {% if highlight.active %} (activated) {% else %} {% include "action_only_form.html" with action="activate_highlight" pk=highlight.id button="Activate" %} {% endif %} {% if highlight.active %} {% include "action_only_form.html" with action="deactivate_highlight" pk=highlight.id button="Deactivate" %} {% else %} (deactivated) {% endif %}
{% include "page_nav.html" with items=highlights %} {% else %}
None.
{% endif %}

Current highlighting

Colour examples

{% for colour in colourlist %}
Colour {{ colour }}
{% endfor %} {% endblock %}