{% load static %} Incidents

Pokemon incidents registration system

{% if request.user.is_authenticated %}

You're logged in as {{request.user.username}}. Logout

{% endif %}
{% if request.user.is_authenticated %}

Incidents

{% for incident in incidents %} {% endfor %}
Registration date Pokemon Suspected trainer Description Assigned
{{incident.reg_date}} {{incident.pokemon}} {{incident.suspect|default:"-"}} {{incident.description|truncatechars:80}} {% if incident.assigned %} {{incident.assigned.username}} {% else %} - {% endif %}
{% else %}

Login

{% if err_msg %}

{{err_msg}}

{% endif %} {% csrf_token %}

Username:

Password:

{% endif %}