From dd9d99eca21d55b0964955ab3ff6fb13fbdf944b Mon Sep 17 00:00:00 2001 From: David Venhoff Date: Mon, 6 Jun 2022 17:07:35 +0200 Subject: [PATCH] Fix horizontal align of content form save buttons --- CHANGELOG.md | 2 ++ integreat_cms/cms/templates/events/event_form.html | 4 ++-- integreat_cms/cms/templates/languages/language_form.html | 4 ++-- integreat_cms/cms/templates/pages/_page_order_table.html | 2 +- integreat_cms/cms/templates/pages/page_form.html | 4 ++-- integreat_cms/cms/templates/pois/poi_form.html | 4 ++-- .../templates/push_notifications/push_notification_form.html | 4 ++-- integreat_cms/cms/templates/regions/region_form.html | 4 ++-- integreat_cms/cms/templates/users/user_form.html | 2 +- 9 files changed, 16 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 008eff4182..adefc7f883 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ UNRELEASED ---------- +* [ [#1516](https://github.com/digitalfabrik/integreat-cms/issues/1516) ] Fix save buttons alignment + 2022.6.0 -------- diff --git a/integreat_cms/cms/templates/events/event_form.html b/integreat_cms/cms/templates/events/event_form.html index abb05de3c3..be3829bed5 100644 --- a/integreat_cms/cms/templates/events/event_form.html +++ b/integreat_cms/cms/templates/events/event_form.html @@ -16,7 +16,7 @@ {% get_current_language as LANGUAGE_CODE %} {% get_language LANGUAGE_CODE as current_language %}
-

+

{% if event_form.instance.id %} {% if event_translation_form.instance.id %} {% with event_translation_form.instance.title as event_title %} @@ -36,7 +36,7 @@

{% if perms.cms.change_event %} {% if not event_form.instance.id or not event_form.instance.archived %} -
+
{% if perms.cms.publish_event %} + {% endif %}
diff --git a/integreat_cms/cms/templates/pages/_page_order_table.html b/integreat_cms/cms/templates/pages/_page_order_table.html index f78f5bb42f..1a83ee2aff 100644 --- a/integreat_cms/cms/templates/pages/_page_order_table.html +++ b/integreat_cms/cms/templates/pages/_page_order_table.html @@ -2,7 +2,7 @@ {% load content_filters %} {% load page_filters %}
- +
{% for sibling in siblings %} {% if sibling == page %} diff --git a/integreat_cms/cms/templates/pages/page_form.html b/integreat_cms/cms/templates/pages/page_form.html index 0ff5d94c2c..28f98bdd6e 100644 --- a/integreat_cms/cms/templates/pages/page_form.html +++ b/integreat_cms/cms/templates/pages/page_form.html @@ -18,7 +18,7 @@ data-unsaved-warning> {% csrf_token %}
-

+

{% if page %} {% if page_translation_form.instance.id %} {% with page_translation_form.instance.title as page_title %} @@ -37,7 +37,7 @@

{% endif %}

{% if not page_form.instance.id or not page_form.instance.archived %} -
+
{% endif %} diff --git a/integreat_cms/cms/templates/regions/region_form.html b/integreat_cms/cms/templates/regions/region_form.html index 164626390f..d50497c59f 100644 --- a/integreat_cms/cms/templates/regions/region_form.html +++ b/integreat_cms/cms/templates/regions/region_form.html @@ -8,7 +8,7 @@ {% csrf_token %}
-

+

{% if form.initial %} {% with form.name.value as region_name %} {% blocktrans %}Edit region "{{ region_name }}"{% endblocktrans %} @@ -18,7 +18,7 @@

{% endif %}

{% if perms.cms.change_region %} - + {% endif %}
diff --git a/integreat_cms/cms/templates/users/user_form.html b/integreat_cms/cms/templates/users/user_form.html index 0b0aa07253..f9f9806cf3 100644 --- a/integreat_cms/cms/templates/users/user_form.html +++ b/integreat_cms/cms/templates/users/user_form.html @@ -6,7 +6,7 @@ {% csrf_token %}
-

+

{% if user_form.instance.id %} {% with user_form.username.value as user_name %} {% blocktrans %}Edit user "{{ user_name }}"{% endblocktrans %}