diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ebc5ea64d..776b9a21a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -8,6 +8,7 @@ Changelog * Animate the chevron icon when opening sub-menus in the admin (Carlo Ascani) * Fix: Status button on 'edit page' now links to the correct URL when live and draft slug differ (LB (Ben Johnston)) * Fix: Image title text in the gallery and in the chooser now wraps for long filenames (LB (Ben Johnston), Luiz Boaretto) + * Fix: Move image editor action buttons to the bottom of the form on mobile (Julian Gallo) 2.0 (xx.xx.xxxx) - IN DEVELOPMENT diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index e1ff23612..7e898d31c 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -275,6 +275,7 @@ Contributors * Dave Bell * Ben Weatherman * Carlo Ascani +* Julian Gallo Translators =========== diff --git a/docs/releases/2.1.rst b/docs/releases/2.1.rst index 11f7a99b9..a9cfa61c3 100644 --- a/docs/releases/2.1.rst +++ b/docs/releases/2.1.rst @@ -22,6 +22,7 @@ Bug fixes * Status button on 'edit page' now links to the correct URL when live and draft slug differ (LB (Ben Johnston)) * Image title text in the gallery and in the chooser now wraps for long filenames (LB (Ben Johnston), Luiz Boaretto) + * Fix: Move image editor action buttons to the bottom of the form on mobile (Julian Gallo) Upgrade considerations ====================== diff --git a/wagtail/images/templates/wagtailimages/images/edit.html b/wagtail/images/templates/wagtailimages/images/edit.html index aed1636d8..deb50d291 100644 --- a/wagtail/images/templates/wagtailimages/images/edit.html +++ b/wagtail/images/templates/wagtailimages/images/edit.html @@ -31,11 +31,12 @@ {% trans "Editing" as editing_str %} {% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=image.title icon="image" %} -
+
+ {% csrf_token %} -
- - {% csrf_token %} +
+ +
    {% for field in form %} @@ -48,59 +49,64 @@ {% endif %} {% endfor %} -
  • - - {% if user_can_delete %} - {% trans "Delete image" %} - {% endif %} -
- -
-
-

{% trans "Focal point (optional)" %}

-

{% trans "To define this image's most important region, drag a box over the image below." %} {% if image.focal_point %}({% trans "Current focal point shown" %}){% endif %}

- - {% image image max-800x600 as rendition %} - -
- - - -
-
-
- -
-
- {% if url_generator_enabled %} - {% trans "URL Generator" %} -
- {% endif %} +
+

{% trans "Focal point (optional)" %}

+

{% trans "To define this image's most important region, drag a box over the image below." %} {% if image.focal_point %}({% trans "Current focal point shown" %}){% endif %}

- {% image image original as original_image %} + {% image image max-800x600 as rendition %} -
-
{% trans "Max dimensions" %}
-
{{ original_image.width }}x{{ original_image.height }}
-
{% trans "Filesize" %}
-
{% if filesize %}{{ filesize|filesizeformat }}{% else %}{% trans "File not found" %}{% endif %}
+
- {% usage_count_enabled as uc_enabled %} - {% if uc_enabled %} -
{% trans "Usage" %}
-
- {% blocktrans count usage_count=image.get_usage.count %}Used {{ usage_count }} time{% plural %}Used {{ usage_count }} times{% endblocktrans %} -
+ + +
+ +
+
+ +
+ +
+ {% if url_generator_enabled %} + {% trans "URL Generator" %} +
{% endif %} - + + {% image image original as original_image %} + +
+
{% trans "Max dimensions" %}
+
{{ original_image.width }}x{{ original_image.height }}
+
{% trans "Filesize" %}
+
{% if filesize %}{{ filesize|filesizeformat }}{% else %}{% trans "File not found" %}{% endif %}
+ + {% usage_count_enabled as uc_enabled %} + {% if uc_enabled %} +
{% trans "Usage" %}
+
+ {% blocktrans count usage_count=image.get_usage.count %}Used {{ usage_count }} time{% plural %}Used {{ usage_count }} times{% endblocktrans %} +
+ {% endif %} +
+
-
+ +
+
+ + {% if user_can_delete %} + {% trans "Delete image" %} + {% endif %} +
+
+ + {% endblock %}