add id field containg obj id to table if available

useful for finding out a notification ID when investigating support issues
This commit is contained in:
Leo Hemsted
2016-09-09 15:50:55 +01:00
parent 30d0944ca1
commit 816ba32b25

View File

@@ -28,7 +28,7 @@
{% call mapping_table(caption, field_headings, field_headings_visible, caption_visible) %}
{% for item in items %}
{% call row() %}
{% call row(item.id) %}
{{ parent_caller(item, loop.index + 1) }}
{% endcall %}
{% endfor %}
@@ -43,8 +43,8 @@
{%- endmacro %}
{% macro row() -%}
<tr class="table-row">
{% macro row(id=None) -%}
<tr class="table-row" {% if id %}id="{{id}}"{% endif %}>
{{ caller() }}
</tr>
{%- endmacro %}