Add search function and ui refactor

This commit is contained in:
2022-04-19 14:17:26 +02:00
parent 0f762baed2
commit 13cc531c5d
11 changed files with 320 additions and 275 deletions

View File

@@ -1,8 +1,18 @@
from django.urls import path
from portal.views import GetHome, GetRollingStock
from portal.views import GetHome, GetHomeFiltered, GetRollingStock
urlpatterns = [
path("", GetHome.as_view(), name='index'),
path("<int:page>", GetHome.as_view(), name='index_pagination'),
path(
"search",
GetHomeFiltered.as_view(http_method_names=['post']),
name='index_filtered'
),
path("search/<str:search>",
GetHomeFiltered.as_view(), name='index_filtered'),
path("search/<str:search>/<int:page>",
GetHomeFiltered.as_view(), name='index_filtered_pagination'),
path("<uuid:uuid>", GetRollingStock.as_view(), name='rolling_stock'),
]