{% extends "arnold/base.html" %} {% block content %} {% comment %} Display form for defining search parameters {% endcomment %}
{{ form.searchtype }} {{ form.searchvalue }} {% if form.searchvalue.errors %} {{ form.searchvalue.errors.0 }} {% else %}   {% endif %}
{{ form.status.label }} {{ form.status }}
{{ form.days.label }} {{ form.days }} days back {% if form.days.errors %} {{ form.days.errors.0 }} {% else %}   {% endif %}
   
{% comment %} Display search results {% endcomment %} {% if form.is_bound and not form.errors %} {% for result in search_result %} {% endfor %}
Result
IP DNS MAC Netbios Status Reason Last changed  
{{ result.ip }} {{ result.dns }} {{ result.mac }} {{ result.netbios }} {{ result.status }} {{ result.justification }} {{ result.last_changed|date:"DATETIME_FORMAT" }} Details
{{ search_result|length }} result{{ search_result|pluralize:'s' }} found
{% endif %} {% endblock %}