Remove contact page

This commit is contained in:
Nathan Chapman 2022-11-13 10:56:00 -07:00
parent f644c124b7
commit f52b529c86
3 changed files with 1 additions and 13 deletions

View File

@ -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 &rarr;</a>
{% endwith %}

View File

@ -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(),

View File

@ -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