diff --git a/oscar_promotions/templates/oscar_promotions/dashboard/form.html b/oscar_promotions/templates/oscar_promotions/dashboard/form.html index 1d4d223..681e085 100644 --- a/oscar_promotions/templates/oscar_promotions/dashboard/form.html +++ b/oscar_promotions/templates/oscar_promotions/dashboard/form.html @@ -4,15 +4,16 @@ {% block body_class %}{{ block.super }} create-page promotions{% endblock %} {% block breadcrumbs %} - + {% endblock %} {% block headertext %} @@ -25,18 +26,25 @@

{% trans "Content block" %}

+
+
+
+ {% csrf_token %} + {% include "oscar/dashboard/partials/form_fields.html" with form=form %} - - {% csrf_token %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form %} + {% block inlines %} {% endblock %} - {% block inlines %} {% endblock %} - -
- - {% trans "or" %} {% trans "cancel" %} +
+ + {% trans "or" %} {% trans "cancel" %} +
+
- +
+ + {% endblock %} @@ -45,31 +53,35 @@

{% trans "Content block" %}

{% trans "Pages displaying this content blocks" %} {% if links %} - - {% trans "Page URL" %} - {% trans "Position on page" %} - {% trans "Actions" %} - + + {% trans "Page URL" %} + {% trans "Position on page" %} + {% trans "Actions" %} + - {% for link in links %} - - {{ link.page_url }} - {{ link.position }} - -
- {% csrf_token %} - - - {% trans "View all blocks on this page" %} - -
- - - {% endfor %} + {% for link in links %} + + {{ link.page_url }} + {{ link.position }} + +
+ {% csrf_token %} + + + {% trans "View all blocks on this page" %} + +
+ + + {% endfor %} {% else %} - {% trans "This promotion is not displayed anywhere at the moment." %} + + {% trans "This promotion is not displayed anywhere at the moment." %} + {% endif %}
@@ -78,9 +90,10 @@

{% trans "Add to a page" %}

{% csrf_token %} - + {% include "oscar/dashboard/partials/form_fields.html" with form=link_form %} - +
{% endif %} diff --git a/oscar_promotions/templates/oscar_promotions/dashboard/promotion_list.html b/oscar_promotions/templates/oscar_promotions/dashboard/promotion_list.html index 40cc34f..56f53ad 100644 --- a/oscar_promotions/templates/oscar_promotions/dashboard/promotion_list.html +++ b/oscar_promotions/templates/oscar_promotions/dashboard/promotion_list.html @@ -14,22 +14,26 @@

{% trans "Content blocks" %}

{% endblock header %} {% block breadcrumbs %} - + {% endblock %} {% block dashboard_content %}

{% trans "Create a new content block" %}

-
-
+
+ {% include "oscar/dashboard/partials/form_fields_inline.html" with form=select_form %} - +
diff --git a/requirements.txt b/requirements.txt index 3af036f..fb392d7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -django-oscar>=2.0,<2.1 +django-oscar>=2.0,<=3.0 coverage==6.3 django-webtest==1.9.7 pytest-django>=3.7,<4.5 diff --git a/setup.py b/setup.py index 0afc139..f358bec 100755 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', - 'Framework :: Django :: 2.0', + 'Framework :: Django :: 3.0', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', @@ -27,5 +27,5 @@ 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], - install_requires=['django>=1.11,<2.3', 'django-oscar>=2.0'], + install_requires=['django>=2.2,<3.2', 'django-oscar>=3.0'], )