{% extends "ui/base.html" %} {% load url from future %} {% load icons formats bob staticfiles %} {% block extra_headers %} {{ block.super }} {% if job and not job.is_finished and not job.is_failed %} {% endif %} {% endblock %} {% block sidebar %} {% if status %}
{% csrf_token %}
{% icon 'fugue-arrow-circle-double' %} Rescan {% if scan_summary and scan_summary.changed %} {% endif %}
{% endif %} {% endblock %} {% block contentarea %} {% if job %} {% if not job.is_finished %}

Scanning {{ address }}...

{% for name, bar, icon in status %} {% if bar %}
{% endif %} {% endfor %} {% if not job.is_finished %}
{% endif %}
{% endif %} {% if job.is_failed %}

Scanning failed.

{{ job.exc_info }}
{% endif %} {% if job.is_finished %}
{% for device, form in forms %}
{% csrf_token %} {% for f in form %} {% if not '-custom' in f.name %}
{{ f }} {% for error in f.errors %}
{{ error }}
{% endfor %}
{% endif %} {% endfor %} {% if initial_device_id %} {% endif %}
{% if initial_device_id %} {% url 'search' details='scan' device=initial_device_id as initial_url %} {% else %} {% url 'search' as initial_url %} {% endif %} Cancel
{% endfor %}
{% endif %}
Logs: {% for addr, name, kind, message in job.meta.messages %}
{{ name }}: {{ message }}
{% endfor %}
{% endif %} {% endblock %} {% block scripts %} {{ block.super }} {% endblock scripts %}