From db46b2494b506db8b2a02e8e1049e20071571990 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 17 Mar 2022 07:26:30 +0100 Subject: [PATCH] Renamed asset list url and added list link to form --- asset/templates/asset/asset_form.html | 5 ++++- asset/urls.py | 2 +- homelog/templates/homelog/home.html | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/asset/templates/asset/asset_form.html b/asset/templates/asset/asset_form.html index dd5ef71..374d264 100644 --- a/asset/templates/asset/asset_form.html +++ b/asset/templates/asset/asset_form.html @@ -21,7 +21,10 @@ --> {{ form.as_p }} -
+
+ + Asset List +
diff --git a/asset/urls.py b/asset/urls.py index c58cf87..75e384a 100644 --- a/asset/urls.py +++ b/asset/urls.py @@ -4,7 +4,7 @@ from asset.views import AssetCreateView, AssetDeleteView, AssetUpdateView, Asset app_name = 'asset' urlpatterns = [ - path('', AssetListView.as_view(), name='index'), + path('', AssetListView.as_view(), name='list'), path('add/', AssetCreateView.as_view(), name='add'), path('/', AssetUpdateView.as_view(), name='asset-update'), path('/', AssetUpdateView.as_view(), name='detail'), diff --git a/homelog/templates/homelog/home.html b/homelog/templates/homelog/home.html index 7f83bc1..e7a5317 100644 --- a/homelog/templates/homelog/home.html +++ b/homelog/templates/homelog/home.html @@ -6,7 +6,7 @@

This is HOME

Container Types
Container
-Assets
+Assets
{% endblock %}