Remove contact page
This commit is contained in:
parent
f644c124b7
commit
f52b529c86
@ -27,7 +27,7 @@
|
||||
<figcaption><strong>{{variant}}</strong></figcaption>
|
||||
</figure>
|
||||
<span>{{ variant.sku }}</span>
|
||||
<span>{{ variant.stock }}</span>
|
||||
<span>{{ variant.stock|default_if_none:"0" }}</span>
|
||||
<span>{{ variant.total_in_warehouse }}</span>
|
||||
<a href="{% url 'dashboard:variant-restock' product.pk variant.pk %}" class="action-button">Restock →</a>
|
||||
{% endwith %}
|
||||
|
||||
@ -5,7 +5,6 @@ urlpatterns = [
|
||||
path('about/', views.AboutView.as_view(), name='about'),
|
||||
path('fair-trade/', views.FairTradeView.as_view(), name='fair-trade'),
|
||||
path('reviews/', views.ReviewListView.as_view(), name='reviews'),
|
||||
path('contact/', views.ContactFormView.as_view(), name='contact'),
|
||||
path(
|
||||
'subscriptions/',
|
||||
views.SubscriptionCreateView.as_view(),
|
||||
|
||||
@ -558,17 +558,6 @@ class ReviewListView(TemplateView):
|
||||
template_name = 'storefront/reviews.html'
|
||||
|
||||
|
||||
class ContactFormView(FormView, SuccessMessageMixin):
|
||||
template_name = 'storefront/contact_form.html'
|
||||
form_class = ContactForm
|
||||
success_url = reverse_lazy('storefront:product-list')
|
||||
success_message = 'Message sent.'
|
||||
|
||||
def form_valid(self, form):
|
||||
form.send_email()
|
||||
return super().form_valid(form)
|
||||
|
||||
|
||||
class SubscriptionCreateView(FormView):
|
||||
template_name = 'storefront/subscriptions.html'
|
||||
form_class = SubscriptionCreateForm
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user