diff --git a/django_lostplaces/lostplaces/templates/partials/form/submit.html b/django_lostplaces/lostplaces/templates/partials/form/submit.html new file mode 100644 index 0000000..a012fc7 --- /dev/null +++ b/django_lostplaces/lostplaces/templates/partials/form/submit.html @@ -0,0 +1,8 @@ +
+ +
+
+ + + +
diff --git a/django_lostplaces/lostplaces/templates/photo_album/photo_album_create.html b/django_lostplaces/lostplaces/templates/photo_album/photo_album_create.html index 883c980..52cdb7b 100644 --- a/django_lostplaces/lostplaces/templates/photo_album/photo_album_create.html +++ b/django_lostplaces/lostplaces/templates/photo_album/photo_album_create.html @@ -27,14 +27,7 @@
-
- -
-
- - - -
+ {% include 'partials/form/submit.html' with referrer=request.META.HTTP_REFERER %}
diff --git a/django_lostplaces/lostplaces/templates/place/place_create.html b/django_lostplaces/lostplaces/templates/place/place_create.html index d085629..381bc9d 100644 --- a/django_lostplaces/lostplaces/templates/place/place_create.html +++ b/django_lostplaces/lostplaces/templates/place/place_create.html @@ -39,14 +39,7 @@
-
- -
-
- - - -
+ {% include 'partials/form/submit.html' with referrer=request.META.HTTP_REFERER action='Create' %}
diff --git a/django_lostplaces/lostplaces/templates/place/place_delete.html b/django_lostplaces/lostplaces/templates/place/place_delete.html index f23895f..2b644a7 100644 --- a/django_lostplaces/lostplaces/templates/place/place_delete.html +++ b/django_lostplaces/lostplaces/templates/place/place_delete.html @@ -16,14 +16,7 @@
-
- -
-
- - - -
+ {% include 'partials/form/submit.html' with referer=request.META.HTTP_REFERER action='Delete' %}
diff --git a/django_lostplaces/lostplaces/templates/place/place_update.html b/django_lostplaces/lostplaces/templates/place/place_update.html index 5d274f6..150dbfd 100644 --- a/django_lostplaces/lostplaces/templates/place/place_update.html +++ b/django_lostplaces/lostplaces/templates/place/place_update.html @@ -39,14 +39,7 @@
-
- -
-
- - - -
+ {% include 'partials/form/submit.html' with referrer=request.META.HTTP_REFERER action='Update' %}
diff --git a/django_lostplaces/lostplaces/templates/place_image/place_image_create.html b/django_lostplaces/lostplaces/templates/place_image/place_image_create.html index 1b5c3e9..4213cbd 100644 --- a/django_lostplaces/lostplaces/templates/place_image/place_image_create.html +++ b/django_lostplaces/lostplaces/templates/place_image/place_image_create.html @@ -13,14 +13,7 @@
-
- -
-
- - - -
+ {% include 'partials/form/submit.html' with referrer=request.META.HTTP_REFERER %}