update
This commit is contained in:
parent
77d4a76a65
commit
83c4707886
@ -9,7 +9,7 @@ from django.conf.urls import handler403, handler400, handler404, handler500
|
|||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# main URLs
|
# main URLs
|
||||||
path("", views.HomeView.as_view(), name="home"),
|
path("", views.HomeView.as_view(), name="home"),
|
||||||
# path("<slug:dealer_slug>/", views.HomeView.as_view(), name="home"),
|
path("<slug:dealer_slug>/", views.HomeView.as_view(), name="home"),
|
||||||
path("welcome/", views.WelcomeView.as_view(), name="welcome"),
|
path("welcome/", views.WelcomeView.as_view(), name="welcome"),
|
||||||
# Accounts URLs
|
# Accounts URLs
|
||||||
# path("login/", allauth_views.LoginView.as_view(template_name="account/login.html"), name="account_login"),
|
# path("login/", allauth_views.LoginView.as_view(template_name="account/login.html"), name="account_login"),
|
||||||
|
|||||||
@ -3,11 +3,13 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block title %}Delete Car{% endblock %}
|
{% block title %}Delete Car{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="mt-4 ms-4">
|
||||||
<h1>Delete Car</h1>
|
<h1>Delete Car</h1>
|
||||||
<p>Are you sure you want to delete the car "{{ car }}"?</p>
|
<p class="text-danger">Are you sure you want to delete the car "{{ car }}"?</p>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit" class="btn btn-phoenix-danger">Confirm Delete</button>
|
<button type="submit" class="btn btn-phoenix-danger">Confirm Delete</button>
|
||||||
<a href="{% url 'car_detail' request.dealer.slug car.pk %}" class="btn btn-phoenix-secondary">{% trans 'Cancel' %}</a>
|
<a href="{% url 'car_detail' request.dealer.slug car.pk %}" class="btn btn-phoenix-secondary">{% trans 'Cancel' %}</a>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user