update
This commit is contained in:
parent
77d4a76a65
commit
83c4707886
@ -9,7 +9,7 @@ from django.conf.urls import handler403, handler400, handler404, handler500
|
||||
urlpatterns = [
|
||||
# main URLs
|
||||
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"),
|
||||
# Accounts URLs
|
||||
# path("login/", allauth_views.LoginView.as_view(template_name="account/login.html"), name="account_login"),
|
||||
|
||||
@ -3,11 +3,13 @@
|
||||
{% load i18n %}
|
||||
{% block title %}Delete Car{% endblock %}
|
||||
{% block content %}
|
||||
<div class="mt-4 ms-4">
|
||||
<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">
|
||||
{% csrf_token %}
|
||||
<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>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user