changeset 32062bae6f21 in bugs.tryton.org:default
details: https://hg.tryton.org/bugs.tryton.org?cmd=changeset;node=32062bae6f21
description:
        Allow to search on type and component of issue
diffstat:

 html/issue.index.html  |  12 ++++++++++++
 html/issue.search.html |  34 ++++++++++++++++++++++++++++++++--
 2 files changed, 44 insertions(+), 2 deletions(-)

diffs (94 lines):

diff -r 4f0171b20369 -r 32062bae6f21 html/issue.index.html
--- a/html/issue.index.html     Sun Nov 01 10:15:22 2020 +0100
+++ b/html/issue.index.html     Tue Nov 10 10:47:34 2020 +0100
@@ -21,6 +21,9 @@
             {% if request.show.priority %}
             <th scope="col">{% trans %}Priority{% endtrans %}</th>
             {% endif %}
+            {% if request.show.type %}
+            <th scope="col">{% trans %}Type{% endtrans %}</th>
+            {% endif %}
             {% if request.show.id %}
             <th scope="col">{% trans %}ID{% endtrans %}</th>
             {% endif %}
@@ -33,6 +36,9 @@
             {% if request.show.keyword %}
             <th scope="col">{% trans %}Keyword{% endtrans %}</th>
             {% endif %}
+            {% if request.show.component %}
+            <th scope="col">{% trans %}Component{% endtrans %}</th>
+            {% endif %}
             {% if request.show.title %}
             <th scope="col">{% trans %}Title{% endtrans %}</th>
             {% endif %}
@@ -64,6 +70,9 @@
                   {% if request.show.priority %}
            <td>{{ issue.priority.plain()|u }}</td>
                   {% endif %}
+                  {% if request.show.type %}
+           <td>{{ issue.priority.type()|u }}</td>
+                  {% endif %}
                   {% if request.show.id %}
            <td>{{ issue.id }}</td>
                   {% endif %}
@@ -76,6 +85,9 @@
                   {% if request.show.keyword %}
            <td>{{ issue.keyword.plain()|u }}</td>
                   {% endif %}
+                  {% if request.show.component %}
+           <td>{{ issue.component.plain()|u }}</td>
+                  {% endif %}
                   {% if request.show.title %}
            <td>
             <a href='issue{{ issue.id }}'>{{ issue.title.plain(hyperlink=0)|u 
}}</a>
diff -r 4f0171b20369 -r 32062bae6f21 html/issue.search.html
--- a/html/issue.search.html    Sun Nov 01 10:15:22 2020 +0100
+++ b/html/issue.search.html    Tue Nov 10 10:47:34 2020 +0100
@@ -77,8 +77,23 @@
          {{ option_value('keyword', keyword.id, keyword.name.plain()) }}
          {% endfor %}
          </select></td>
-  <td class="text-center">{{ display_column('id') }}</td>
-  <td class="text-center">{{ sort_column('id') }}</td>
+  <td class="text-center">{{ display_column('keyword') }}</td>
+  <td class="text-center">{{ sort_column('keyword') }}</td>
+  <td>&nbsp;</td>
+</tr>
+
+<tr>
+  <th>{% trans %}Component:{% endtrans %}</th>
+  <td><select class="custom-select" name="component" id="component">
+         {{ option_value('component', '', 'don\'t care') }}
+         {{ option_value('component', '-1', 'not selected') }}
+      <option value="" disabled="disabled">------------</option>
+         {% for component in db['component'].list() %}
+         {{ option_value('component', component.id, component.name.plain()) }}
+         {% endfor %}
+         </select></td>
+  <td class="text-center">{{ display_column('component') }}</td>
+  <td class="text-center">{{ sort_column('component') }}</td>
   <td>&nbsp;</td>
 </tr>
 
@@ -122,6 +137,21 @@
 </tr>
 
 <tr>
+  <th>{% trans %}Type:{% endtrans %}</th>
+  <td><select class="custom-select" name="type" id="type">
+         {{ option_value('type', '', 'don\'t care') }}
+         {{ option_value('type', '-1', 'not selected') }}
+      <option value="" disabled="disabled">------------</option>
+         {% for type in db['type'].list() %}
+         {{ option_value('type', type.id, type.name.plain()) }}
+         {% endfor %}
+         </select></td>
+  <td class="text-center">{{ display_column('type') }}</td>
+  <td class="text-center">{{ sort_column('type') }}</td>
+  <td class="text-center">{{ group_column('type') }}</td>
+
+
+<tr>
   <th>Status:</th>
   <td><select class="custom-select" name="status" id="status">
          {{ option_value('status', '', 'don\'t care') }}

Reply via email to