{% extends 'base.html' %} {% load crispy_forms_tags %} {% block title %}Manage Parking Places{% endblock %} {% block content %}

Manage Parking Places

{% if request.user.is_superuser %}

Add Parking Place

{% csrf_token %} {{ place_form|crispy }}
{% endif %}

Available Parking Places

{% if request.user.is_superuser %}{% endif %} {% for parking_place in parking_places %} {% if request.user.is_superuser %} {% endif %} {% empty %} {% endfor %}
Place Name Location StatusActions
{{ parking_place.place_name }} {{ parking_place.location }} {{ parking_place.status|yesno:"Active,Inactive" }} Edit
{% csrf_token %}
No parking places available.
{% endblock %}