{% extends 'base.html' %} {% load widget_tweaks %} {% block title %}Payment{% endblock %} {% block content %} {% include 'navbar.html' %}

Payment Details

{% if ticket %}
Ticket Information
Ticket Number {{ ticket.ticket_number }}
Route {{ ticket.route.origin }} to {{ ticket.route.destination }}
Departure Date {{ ticket.departure_date|date:"d M Y" }}
Departure Time {{ ticket.departure_time }}
Seat Number {{ ticket.seat_number }}
Price Rp {{ ticket.price|floatformat:2 }}
Payment Method
{% csrf_token %}
{% render_field form.payment_method class="form-select" %} {% if form.payment_method.errors %}
{{ form.payment_method.errors }}
{% endif %}
Back to Booking
{% else %}
No ticket information available. Please go back to booking.
{% endif %}
{% endblock %} {% block extra_css %} {% endblock %}