From 680a508d429491af1cd87cf6ac9a3272985c398b Mon Sep 17 00:00:00 2001 From: kikimor Date: Mon, 21 Jul 2025 18:08:01 +0300 Subject: [PATCH] added payments, epay and other stuff --- common/templatetags/__init__.py | 0 common/templatetags/filters.py | 0 common_api/__init__.py | 0 common_api/urls.py | 7 +++++++ common_api/views.py | 6 ++++++ payments/services.py | 0 payments/utils.py | 0 static/js/container_validation.js | 0 templates/container-photos.html | 10 ++++++++++ templates/email.html | 10 ++++++++++ templates/employee/container-search.html | 10 ++++++++++ 11 files changed, 43 insertions(+) create mode 100644 common/templatetags/__init__.py create mode 100644 common/templatetags/filters.py create mode 100644 common_api/__init__.py create mode 100644 common_api/urls.py create mode 100644 common_api/views.py create mode 100644 payments/services.py create mode 100644 payments/utils.py create mode 100644 static/js/container_validation.js create mode 100644 templates/container-photos.html create mode 100644 templates/email.html create mode 100644 templates/employee/container-search.html diff --git a/common/templatetags/__init__.py b/common/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/common/templatetags/filters.py b/common/templatetags/filters.py new file mode 100644 index 0000000..e69de29 diff --git a/common_api/__init__.py b/common_api/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/common_api/urls.py b/common_api/urls.py new file mode 100644 index 0000000..a5810ac --- /dev/null +++ b/common_api/urls.py @@ -0,0 +1,7 @@ +from django.urls import path +from .views import validate_container + +urlpatterns = [ + # ... your other urls + path('api/validate-container//', validate_container, name='validate_container'), +] \ No newline at end of file diff --git a/common_api/views.py b/common_api/views.py new file mode 100644 index 0000000..58698b8 --- /dev/null +++ b/common_api/views.py @@ -0,0 +1,6 @@ +from django.http import JsonResponse +from common.utils.utils import check_container_number_validity + +def validate_container(request, number): + is_valid = check_container_number_validity(number) + return JsonResponse({'valid': is_valid}) \ No newline at end of file diff --git a/payments/services.py b/payments/services.py new file mode 100644 index 0000000..e69de29 diff --git a/payments/utils.py b/payments/utils.py new file mode 100644 index 0000000..e69de29 diff --git a/static/js/container_validation.js b/static/js/container_validation.js new file mode 100644 index 0000000..e69de29 diff --git a/templates/container-photos.html b/templates/container-photos.html new file mode 100644 index 0000000..4bdcfcb --- /dev/null +++ b/templates/container-photos.html @@ -0,0 +1,10 @@ + + + + + $Title$ + + +$END$ + + \ No newline at end of file diff --git a/templates/email.html b/templates/email.html new file mode 100644 index 0000000..4bdcfcb --- /dev/null +++ b/templates/email.html @@ -0,0 +1,10 @@ + + + + + $Title$ + + +$END$ + + \ No newline at end of file diff --git a/templates/employee/container-search.html b/templates/employee/container-search.html new file mode 100644 index 0000000..4bdcfcb --- /dev/null +++ b/templates/employee/container-search.html @@ -0,0 +1,10 @@ + + + + + $Title$ + + +$END$ + + \ No newline at end of file