symposion_app/vendor/registrasion/registrasion/urls.py
James Polley f675580d6b Add support for badge PDFs also
* Add a greyscale filter to text for more accurate preview
* Always default to SVG preview as it's the most accurate (cairo
  doesn't do a great job of handling custom fonts when it converts to
  png/pdf)
* Always use roboto font.
2017-12-26 23:55:09 +11:00

91 lines
3.1 KiB
Python

from .reporting import views as rv
from django.conf.urls import include
from django.conf.urls import url
from .views import (
amend_registration,
user_badge,
badge,
badger,
checkout,
credit_note,
edit_profile,
extend_reservation,
guided_registration,
invoice,
invoice_access,
invoice_mailout,
manual_payment,
product_category,
refund,
review,
voucher_code,
)
public = [
url(r"^amend/([0-9]+)$", amend_registration, name="amend_registration"),
url(r"^mybadge$", user_badge, name="user_badge"),
url(r"^mybadge\.(png|svg|pdf)", user_badge, name="user_badge"),
url(r"^badge/([0-9]+)$", badge, name="badge"),
url(r"^badge/([0-9]+).(png|svg|pdf)$", badge, name="badge"),
url(r"^badger/([A-Za-z0-9]+)$", badger, name="badger"),
url(r"^badger/", badger, name="badger"),
url(r"^category/([0-9]+)$", product_category, name="product_category"),
url(r"^checkout$", checkout, name="checkout"),
url(r"^checkout/([0-9]+)$", checkout, name="checkout"),
url(r"^credit_note/([0-9]+)$", credit_note, name="credit_note"),
url(r"^extend/([0-9]+)$", extend_reservation, name="extend_reservation"),
url(r"^invoice/([0-9]+)$", invoice, name="invoice"),
url(r"^invoice/([0-9]+)/([A-Z0-9]+)$", invoice, name="invoice"),
url(r"^invoice/([0-9]+)/manual_payment$",
manual_payment, name="manual_payment"),
url(r"^invoice/([0-9]+)/refund$",
refund, name="refund"),
url(r"^invoice_access/([A-Z0-9]+)$", invoice_access,
name="invoice_access"),
url(r"^invoice_mailout$", invoice_mailout, name="invoice_mailout"),
url(r"^profile$", edit_profile, name="attendee_edit"),
url(r"^review$", review, name="review"),
url(r"^voucher$", voucher_code, name="voucher_code"),
url(r"^register$", guided_registration, name="guided_registration"),
url(r"^register/([0-9]+)$", guided_registration,
name="guided_registration"),
]
reports = [
url(r"^$", rv.reports_list, name="reports_list"),
url(r"^attendee/?$", rv.attendee, name="attendee"),
url(r"^attendee_data/?$", rv.attendee_data, name="attendee_data"),
url(r"^attendee/([0-9]*)$", rv.attendee, name="attendee"),
url(r"^credit_notes/?$", rv.credit_notes, name="credit_notes"),
url(r"^limits/?$", rv.limits, name="reconciliation"),
url(r"^manifest/?$", rv.manifest, name="manifest"),
url(
r"^product_line_items/?$",
rv.product_line_items,
name="product_line_items",
),
url(r"^discount_status/?$", rv.discount_status, name="discount_status"),
url(r"^invoices/?$", rv.invoices, name="invoices"),
url(
r"^paid_invoices_by_date/?$",
rv.paid_invoices_by_date,
name="paid_invoices_by_date"
),
url(r"^product_status/?$", rv.product_status, name="product_status"),
url(r"^reconciliation/?$", rv.reconciliation, name="reconciliation"),
url(
r"^speaker_registrations/?$",
rv.speaker_registrations,
name="speaker_registrations",
),
]
urlpatterns = [
url(r"^reports/", include(reports)),
url(r"^", include(public)) # This one must go last.
]