Create an NFC button for browser supporting NFC API

This commit is contained in:
2024-07-24 17:42:02 +02:00
parent a24b1f5c2a
commit 15f51fb03f
7 changed files with 381 additions and 320 deletions

View File

@ -61,6 +61,7 @@ from counter.forms import (
CounterEditForm,
EticketForm,
GetUserForm,
NFCCardForm,
ProductEditForm,
RefillForm,
StudentCardForm,
@ -679,6 +680,7 @@ class CounterClick(CounterTabsMixin, CanViewMixin, DetailView):
)
kwargs["customer"] = self.customer
kwargs["student_cards"] = self.customer.student_cards.all()
kwargs["student_card_input"] = NFCCardForm()
kwargs["basket_total"] = self.sum_basket(self.request)
kwargs["refill_form"] = self.refill_form or RefillForm()
kwargs["student_card_max_uid_size"] = StudentCard.UID_SIZE