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