{% extends 'gui2/base.html' %} {% load static %} {% load dashboard_tags %} {% load humanize %} {% load fontawesome %} {% block breadcrumbs %} {% with knowledge="complex result" %}{{ block.super }}{% endwith %} {% endblock breadcrumbs %} {% block nav_index %} {% with nav_data="usecases" %}{{ block.super }}{% endwith %} {% endblock %} {% block customhead %} {% endblock %} {% block help %} {{block.super}} {% endblock %} {% block content %}
{% if task.status == 'SUCCESS' %} {% elif task.status == "FAILURE" %} {% else %} {% fontawesome_icon 'hourglass' %} {% endif %}

Complex Task

Job {{task.id}}

{% if task.status == 'SUCCESS' %} Download {% endif %} Workflow
{% for k,v in task.args.0.items %} {% if v|slice:"4" == "http" %} {% else %} {% endif %} {% endfor %}
{{k}}{{v}}{{v}}
{% if task.status == "PENDING" %}
...

Task is running. Please wait. This page will auto-refresh.

{% endif %} {% if task.status == "FAILURE" %}

{{task.result}}

Please contact Support Team for help

{% endif %}
{% if task.status == "SUCCESS" %}
{% if task.result.records|length == 0 %}

No records found

{% else %}
{% if task.result.records|length > 20 %}

Showing max 20 records of {{task.result.records|length}}. Download the complete set

{% endif %} {% for row in task.result.records|slice:"20" %} {% if forloop.counter == 1 %} {% for v in row %}{% endfor %} {% else %} {% for v in row %}{% endfor %} {% endif %} {% endfor %}
{{v}}{{v}}
{% endif %}
{% endif %}
{% endblock %}