{% include 'nav_bar.html' %}
{% include 'hunter/menu_sidebar.html' %}
{%if dict_task['state']=='pending'%} pending {%elif dict_task['state']=='completed'%}  completed {%elif dict_task['state']=='paused'%}  paused {%elif dict_task['state']=='running'%} running {%endif%}

{{dict_task['name']}} {%if dict_task['state']!='completed'%} [{{ dict_task['progress']}}%] {%endif%}

{%if dict_task['state']=='paused'%} {%endif%} {%if dict_task['state']=='running' or dict_task['state']=='pending'%} {%endif%}

Date {{dict_task['date'][0:4]}}/{{dict_task['date'][4:6]}}/{{dict_task['date'][6:8]}}
Description {{dict_task['description']}}
Level {% if dict_task['level'] == 1 %} Global {% elif dict_task['level'] == 2 %} My Organisation {% endif %}
Tags {%for tag in dict_task['tags']%} {{ tag }} {%endfor%}
Creator {{dict_task['creator']}}
Filters
{% if dict_task['filters'] %}
{{ dict_task['filters'] }}
{% else %} No Filters
{% endif %}
Objects Match {%for obj_type in dict_task['nb_objs']%}

{{ obj_type }} {{ dict_task['nb_objs'][obj_type] }}

{%endfor%}
{#
#} {#
#} {#
#} {#
#} {# #} {# value="{{ dict_task['date_from_input'][0:4] }}-{{ dict_task['date_from_input'][4:6] }}-{{ dict_task['date_from_input'][6:8] }}"#} {#
#} {#
#} {#
#} {#
#} {#
#} {# #} {# value="{{ dict_task['date_to_input'][0:4] }}-{{ dict_task['date_to_input'][4:6] }}-{{ dict_task['date_to_input'][6:8] }}"#} {#
#} {#
#} {#
#}

{{ rule_content }}

{% if dict_task['objs'] %}
{% for object in dict_task['objs'] %} {% endfor %}
Type Id Tags
{% with style=object['icon']['style'], icon=object['icon']['icon'] , color=object['icon']['color'] %} {% include 'objects/obj_svg_block.html' %} {% endwith %} {{ object['type']}} {% if object['subtype'] %} {{ object['subtype']}} {% endif %} {{ object['id']}} {% for tag in object['tags'] %} {{ tag }} {% endfor %} {# #} {# #} {# #}

{% endif %}