From fd70adf19d18ebe164346780bdf39e9bfdadad2f Mon Sep 17 00:00:00 2001 From: smilerz Date: Fri, 27 Oct 2023 14:43:48 -0500 Subject: [PATCH] fixes recipe export --- cookbook/forms.py | 4 ++-- cookbook/templates/export.html | 11 +++++------ cookbook/templates/export_response.html | 9 +++++---- .../apps/ExportResponseView/ExportResponseView.vue | 14 +++++++------- vue/src/apps/ExportView/ExportView.vue | 8 +++----- 5 files changed, 22 insertions(+), 24 deletions(-) diff --git a/cookbook/forms.py b/cookbook/forms.py index fb557dd9..36b35ed5 100644 --- a/cookbook/forms.py +++ b/cookbook/forms.py @@ -9,8 +9,8 @@ from django_scopes import scopes_disabled from django_scopes.forms import SafeModelChoiceField, SafeModelMultipleChoiceField from hcaptcha.fields import hCaptchaField -from .models import (Comment, Food, InviteLink, Keyword, MealPlan, MealType, Recipe, RecipeBook, - RecipeBookEntry, SearchPreference, Space, Storage, Sync, User, UserPreference) +from .models import (Comment, Food, InviteLink, Keyword, Recipe, RecipeBook, RecipeBookEntry, + SearchPreference, Space, Storage, Sync, User, UserPreference) class SelectWidget(widgets.Select): diff --git a/cookbook/templates/export.html b/cookbook/templates/export.html index 787fc81c..74ee70e0 100644 --- a/cookbook/templates/export.html +++ b/cookbook/templates/export.html @@ -4,17 +4,14 @@ {% load i18n %} {% load l10n %} - {% block title %}{% trans 'Export Recipes' %}{% endblock %} - {% block content %}
{% endblock %} - {% block script %} {% if debug %} @@ -23,11 +20,13 @@ {% endif %} {% render_bundle 'export_view' %} {% endblock %} - - diff --git a/cookbook/templates/export_response.html b/cookbook/templates/export_response.html index 1f438632..ac198a17 100644 --- a/cookbook/templates/export_response.html +++ b/cookbook/templates/export_response.html @@ -7,15 +7,12 @@ {% block title %}{% trans 'Export' %}{% endblock %} {% block content %} -
- {% endblock %} - {% block script %} {% if debug %} @@ -24,7 +21,11 @@ {% endif %} diff --git a/vue/src/apps/ExportResponseView/ExportResponseView.vue b/vue/src/apps/ExportResponseView/ExportResponseView.vue index 7daec281..9e2f4474 100644 --- a/vue/src/apps/ExportResponseView/ExportResponseView.vue +++ b/vue/src/apps/ExportResponseView/ExportResponseView.vue @@ -20,9 +20,9 @@ {{ $t("If download did not start automatically: ") }} {{ $t("Download") }} @@ -53,20 +53,20 @@