{% extends "page.html" %} {% from "macros.html" import search_date, search_select, search_input, sort_input, group_input, column_input %} {% block title %} Issue searching - {{ config.TRACKER_NAME }} {% endblock %} {% block content %}
{% if request.columns %} {% set cols = request.columns %} {% else %} {% set cols = ['id', 'activity', 'title', 'status', 'assignedto'] %} {% endif %} {% if request.sort %} {% set sort_on = request.sort[0] %} {% else %} {% set sort_on = 'activity' %} {% endif %} {% if request.group %} {% set group_on = request.group[0] %} {% else %} {% set group_on = 'priority' %} {% endif %} {% if db.user.is_view_ok() %} {% endif %} {% if db.user.is_view_ok() %} {% endif %} {% if db.user.is_view_ok() %} {% endif %} {% if request.user.hasPermission('Edit', 'query') %} {% endif %}
  Filter on Display Sort on Group on
All text*: {{ search_input(request, "@search_text") }}      
Title: {{ search_input(request, "title") }} {{ column_input(cols, "title") }} {{ sort_input(sort_on, "title") }}  
Keyword: {{ search_select(request, "keyword", db, "keyword", "name", [("-1", "not selected")]) }} {{ column_input(cols, "keyword") }} {{ sort_input(sort_on, "keyword") }} {{ group_input(group_on, "keyword") }}
ID: {{ search_input(request, "id") }} {{ column_input(cols, "id") }} {{ sort_input(sort_on, "id") }}  
Creation Date: {{ search_date(request, "creation") }} {{ column_input(cols, "creation") }} {{ sort_input(sort_on, "creation") }} {{ group_input(group_on, "creation") }}
Creator: {{ search_select(request, "creator", db, "user", "username", [(request.user.id, "created by me")]) }} {{ column_input(cols, "creator") }} {{ sort_input(sort_on, "creator") }} {{ group_input(group_on, "creator") }}
Activity: {{ search_date(request, "activity") }} {{ column_input(cols, "activity") }} {{ sort_input(sort_on, "activity") }}  
Actor: {{ search_select(request, "actor", db, "user", "username", [(request.user.id, "done by me")]) }} {{ column_input(cols, "actor") }} {{ sort_input(sort_on, "actor") }}  
Priority: {{ search_select(request, "priority", db, "priority", "name", [("-1", "not selected")]) }} {{ column_input(cols, "priority") }} {{ sort_input(sort_on, "priority") }} {{ group_input(group_on, "priority") }}
Status: {{ search_select(request, "status", db, "status", "name", [("-1,1,2,3,4,5,6,7", "not resolved"), ("-1", "not selected")]) }} {{ column_input(cols, "status") }} {{ sort_input(sort_on, "status") }} {{ group_input(group_on, "status") }}
Assigned to: {{ search_select(request, "assignedto", db, "user", "username", [(request.user.id, "assigned to me"), ("-1", "not assigned")]) }} {{ column_input(cols, "assignedto") }} {{ sort_input(sort_on, "assignedto") }} {{ group_input(group_on, "assignedto") }}
No Sort or group:    
Pagesize:
Start With:
Sort Descending:
Group Descending:
Query name**:
 
  *: The "all text" field will look in message bodies and issue titles
{% if request.user.hasPermission('Edit', 'query') %} **: If you supply a name, the query will be saved off and available as a link in the sidebar {% endif %}
{% endblock %}