diff --git a/combo/apps/assets/templates/combo/manager_asset_confirm_delete.html b/combo/apps/assets/templates/combo/manager_asset_confirm_delete.html index 182c287d..de4edfae 100644 --- a/combo/apps/assets/templates/combo/manager_asset_confirm_delete.html +++ b/combo/apps/assets/templates/combo/manager_asset_confirm_delete.html @@ -2,16 +2,16 @@ {% load i18n %} {% block appbar %} -

{% trans 'Delete Asset' %}

+

{% trans 'Delete Asset' %}

{% endblock %} {% block content %} -
- {% csrf_token %} - {% blocktrans %}Are you sure you want to delete this?{% endblocktrans %} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {% blocktrans %}Are you sure you want to delete this?{% endblocktrans %} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/combo/apps/assets/templates/combo/manager_asset_overwrite.html b/combo/apps/assets/templates/combo/manager_asset_overwrite.html index a7b44228..a5ed8150 100644 --- a/combo/apps/assets/templates/combo/manager_asset_overwrite.html +++ b/combo/apps/assets/templates/combo/manager_asset_overwrite.html @@ -2,20 +2,20 @@ {% load i18n %} {% block appbar %} -

{% trans "Overwrite Asset" %}

+

{% trans "Overwrite Asset" %}

{% endblock %} {% block content %} -
- {% csrf_token %} -

- {% trans "This will erase the existing file and replace it with a new one." %} -

- {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} +

+ {% trans "This will erase the existing file and replace it with a new one." %} +

+ {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/combo/apps/assets/templates/combo/manager_asset_upload.html b/combo/apps/assets/templates/combo/manager_asset_upload.html index 4de3cb13..3373dba1 100644 --- a/combo/apps/assets/templates/combo/manager_asset_upload.html +++ b/combo/apps/assets/templates/combo/manager_asset_upload.html @@ -2,17 +2,17 @@ {% load i18n %} {% block appbar %} -

{% trans "Asset Upload" %}

+

{% trans "Asset Upload" %}

{% endblock %} {% block content %} -
- {% csrf_token %} - {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/combo/apps/assets/templates/combo/manager_assets.html b/combo/apps/assets/templates/combo/manager_assets.html index fa80f1f7..5f60529b 100644 --- a/combo/apps/assets/templates/combo/manager_assets.html +++ b/combo/apps/assets/templates/combo/manager_assets.html @@ -2,49 +2,49 @@ {% load i18n %} {% block appbar %} -

{% trans 'Assets' %}

- - -{% trans 'Upload' %} - - +

{% trans 'Assets' %}

+ + + {% trans 'Upload' %} + + {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Assets' %} + {{ block.super }} + {% trans 'Assets' %} {% endblock %} {% block content %} -{% if not object_list and not query %} -
- {% blocktrans %} - This site doesn't have any asset yet. You can add some directly when editing - pages, in the "Upload Image" dialog. - {% endblocktrans %} -
+ {% if not object_list and not query %} +
+ {% blocktrans %} + This site doesn't have any asset yet. You can add some directly when editing + pages, in the "Upload Image" dialog. + {% endblocktrans %} +
-{% else %} + {% else %} -
-

- {% trans "(case insensitive search over filenames)" %} -

-
+
+

+ {% trans "(case insensitive search over filenames)" %} +

+
-
-
- {% include "combo/manager_assets_fragment.html" %} -
-
-
+
+
+ {% include "combo/manager_assets_fragment.html" %} +
+
+
-{% include "gadjo/pagination.html" %} + {% include "gadjo/pagination.html" %} -{% endif %} + {% endif %} {% endblock %} diff --git a/combo/apps/assets/templates/combo/manager_assets_browse.html b/combo/apps/assets/templates/combo/manager_assets_browse.html index 228e579b..9f4ee50c 100644 --- a/combo/apps/assets/templates/combo/manager_assets_browse.html +++ b/combo/apps/assets/templates/combo/manager_assets_browse.html @@ -2,11 +2,11 @@ {% load static i18n %} {% block css %} - + {% endblock %} {% block extrascripts %} - + {% endblock %} {% block user-links %}{% endblock %} @@ -16,61 +16,61 @@ {% block footer %}{% endblock %} {% block appbar %} -

{% trans "Browse for the file you want, then click 'Embed File' to continue..." %}

+

{% trans "Browse for the file you want, then click 'Embed File' to continue..." %}

{% endblock %} {% block content %} -{% if not object_list and not query %} -
- {% trans "No files found. Upload files using the 'Image Button' or 'Link Button' dialog's 'Upload' tab." %} -
+ {% if not object_list and not query %} +
+ {% trans "No files found. Upload files using the 'Image Button' or 'Link Button' dialog's 'Upload' tab." %} +
-{% else %} + {% else %} -
- {% for k, v in request.GET.items %} - {% if k != 'q' %}{% endif %} - {% endfor %} -

- {% trans "(case insensitive search over filenames)" %} -

-
+
+ {% for k, v in request.GET.items %} + {% if k != 'q' %}{% endif %} + {% endfor %} +

+ {% trans "(case insensitive search over filenames)" %} +

+
-
-
- {% with asset_for_ckeditor=True %} - {% include "combo/manager_assets_fragment.html" %} - {% endwith %} -
-
-
+
+
+ {% with asset_for_ckeditor=True %} + {% include "combo/manager_assets_fragment.html" %} + {% endwith %} +
+
+
-{% include "gadjo/pagination.html" %} + {% include "gadjo/pagination.html" %} -
- -
+
+ +
-{% endif %} - + {% endblock %} diff --git a/combo/apps/assets/templates/combo/manager_assets_fragment.html b/combo/apps/assets/templates/combo/manager_assets_fragment.html index 4986fe6a..06001208 100644 --- a/combo/apps/assets/templates/combo/manager_assets_fragment.html +++ b/combo/apps/assets/templates/combo/manager_assets_fragment.html @@ -6,41 +6,41 @@ {% trans "Size" %} {% if not asset_for_ckeditor %} - + {% endif %} {% for asset in object_list %} - - - {% if asset_for_ckeditor %} - {{ asset.name }} - {% elif asset.src %} - {{ asset.name }} - {% else %} - {{ asset.name }} ({% trans "not defined" %}) - {% endif %} - {% if asset.size %}{{ asset.size|filesizeformat }}{% else %}-{% endif %} - {% if asset.is_image %}{% endif %} - {% if not asset_for_ckeditor %} - - {% if asset.key %}{# theme asset #} - {% trans 'Overwrite' %} - {% if asset.asset %} - {% trans 'Delete' %} - {% endif %} - {% else %} - {% trans 'Overwrite' %} - {% trans 'Delete' %} - {% endif %} - - {% endif %} - + + + {% if asset_for_ckeditor %} + {{ asset.name }} + {% elif asset.src %} + {{ asset.name }} + {% else %} + {{ asset.name }} ({% trans "not defined" %}) + {% endif %} + {% if asset.size %}{{ asset.size|filesizeformat }}{% else %}-{% endif %} + {% if asset.is_image %}{% endif %} + {% if not asset_for_ckeditor %} + + {% if asset.key %}{# theme asset #} + {% trans 'Overwrite' %} + {% if asset.asset %} + {% trans 'Delete' %} + {% endif %} + {% else %} + {% trans 'Overwrite' %} + {% trans 'Delete' %} + {% endif %} + + {% endif %} + {% endfor %} diff --git a/combo/apps/assets/templates/combo/manager_assets_import.html b/combo/apps/assets/templates/combo/manager_assets_import.html index e81d448c..010ad6ed 100644 --- a/combo/apps/assets/templates/combo/manager_assets_import.html +++ b/combo/apps/assets/templates/combo/manager_assets_import.html @@ -2,20 +2,20 @@ {% load i18n %} {% block appbar %} -

{% trans "Assets Import" %}

+

{% trans "Assets Import" %}

{% endblock %} {% block content %} -
- {% csrf_token %} -

- {% trans "Assets import allows you to integrate assets exported from another site." %} -

- {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} +

+ {% trans "Assets import allows you to integrate assets exported from another site." %} +

+ {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/combo/apps/assets/templates/combo/manager_slot_assets.html b/combo/apps/assets/templates/combo/manager_slot_assets.html index 6905430d..0e1c9ade 100644 --- a/combo/apps/assets/templates/combo/manager_slot_assets.html +++ b/combo/apps/assets/templates/combo/manager_slot_assets.html @@ -2,18 +2,18 @@ {% load i18n %} {% block appbar %} -

{% trans 'Assets' %}

+

{% trans 'Assets' %}

{% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Assets' %} + {{ block.super }} + {% trans 'Assets' %} {% endblock %} {% block content %} -
-{% include "combo/manager_assets_fragment.html" %} -
+
+ {% include "combo/manager_assets_fragment.html" %} +
{% endblock %} diff --git a/combo/apps/calendar/templates/calendar/booking_calendar_cell.html b/combo/apps/calendar/templates/calendar/booking_calendar_cell.html index e70947da..36d974b6 100644 --- a/combo/apps/calendar/templates/calendar/booking_calendar_cell.html +++ b/combo/apps/calendar/templates/calendar/booking_calendar_cell.html @@ -1,27 +1,27 @@ {% load i18n calendar %} {% block cell-content %} -{% if cell.title %} -

- {{cell.title}} - {% if calendar %} - - {% with calendar.get_first_available_slot as slot %} - ({% if slot %}{% trans "Next available slot:" %} {{ slot.date_time|date:"DATETIME_FORMAT"}}{% else %}{% trans "No available slots." %}{% endif %}) - {% endwith %} - - {% endif %} -

-{% endif %} + {% if cell.title %} +

+ {{cell.title}} + {% if calendar %} + + {% with calendar.get_first_available_slot as slot %} + ({% if slot %}{% trans "Next available slot:" %} {{ slot.date_time|date:"DATETIME_FORMAT"}}{% else %}{% trans "No available slots." %}{% endif %}) + {% endwith %} + + {% endif %} +

+ {% endif %} -{% if error %} + {% if error %}

{{ error }}

-{% else %} + {% else %}
- {% include 'calendar/booking_calendar_content.html' %} + {% include 'calendar/booking_calendar_content.html' %}
-{% endif %} + {% endif %} - + {% endblock %} diff --git a/combo/apps/calendar/templates/calendar/booking_calendar_content.html b/combo/apps/calendar/templates/calendar/booking_calendar_content.html index 80de8d6a..1df8eb12 100644 --- a/combo/apps/calendar/templates/calendar/booking_calendar_content.html +++ b/combo/apps/calendar/templates/calendar/booking_calendar_content.html @@ -1,57 +1,57 @@ {% load i18n calendar %} {% if calendar_days.has_other_pages %} -

+

-{% if calendar_days.has_previous %} - -{% else %} -{% trans "previous" %} -{% endif %} - - {{ calendar_days.number }} / {{ calendar_days.paginator.num_pages }} - -{% if calendar_days.has_next %} - -{% else %} -{% trans "next" %} -{% endif %} -

+ {% if calendar_days.has_previous %} + + {% else %} + {% trans "previous" %} + {% endif %} + + {{ calendar_days.number }} / {{ calendar_days.paginator.num_pages }} + + {% if calendar_days.has_next %} + + {% else %} + {% trans "next" %} + {% endif %} +

{% endif %} {% if calendar_days %} -
+ {% csrf_token %} - - - - {% for day in calendar_days %} - - {% endfor %} - - - - {% for slot in calendar_slots %} - - - {% for day in calendar_days %} - {% get_day_slot calendar day=day slot=slot as value %} - {% if not value.exist %} + + + + {% for day in calendar_days %} + + {% endfor %} + + + + {% for slot in calendar_slots %} + + + {% for day in calendar_days %} + {% get_day_slot calendar day=day slot=slot as value %} + {% if not value.exist %} - {% elif value.available %} + {% elif value.available %} - {% else %} + {% else %} - {% endif %} - {% endfor %} - + {% endif %} {% endfor %} - + + {% endfor %} +
{{day|date:"SHORT_DATE_FORMAT"}}
{{slot|date:"TIME_FORMAT"}}
{{day|date:"SHORT_DATE_FORMAT"}}
{{slot|date:"TIME_FORMAT"}} - - + +
-
+ {% endif %} diff --git a/combo/apps/dashboard/templates/combo/dashboard_cell_icons.html b/combo/apps/dashboard/templates/combo/dashboard_cell_icons.html index 558f1197..1a21a2d6 100644 --- a/combo/apps/dashboard/templates/combo/dashboard_cell_icons.html +++ b/combo/apps/dashboard/templates/combo/dashboard_cell_icons.html @@ -1,18 +1,18 @@ {% load i18n dashboard %} {% block content %} -{% if user.is_authenticated %} - -{% if not in_dashboard %} - {% with tile=cell|as_dashboard_cell:request.user %} - {% if tile %} - - {% else %} - - {% endif %} - {% endwith %} -{% else %} - -{% endif %} - -{% endif %} + {% if user.is_authenticated %} + + {% if not in_dashboard %} + {% with tile=cell|as_dashboard_cell:request.user %} + {% if tile %} + + {% else %} + + {% endif %} + {% endwith %} + {% else %} + + {% endif %} + + {% endif %} {% endblock %} diff --git a/combo/apps/dashboard/templates/combo/dashboardcell.html b/combo/apps/dashboard/templates/combo/dashboardcell.html index 991181c4..5158ea43 100644 --- a/combo/apps/dashboard/templates/combo/dashboardcell.html +++ b/combo/apps/dashboard/templates/combo/dashboardcell.html @@ -1,14 +1,14 @@ {% load i18n %} {% block cell-content %} -{% for tile in tiles %} -{% with cell=tile.cell %} -
{% render_cell cell %}
-{% endwith %} -{% endfor %} + {% for tile in tiles %} + {% with cell=tile.cell %} +
{% render_cell cell %}
+ {% endwith %} + {% endfor %} {% endblock %} diff --git a/combo/apps/dataviz/templates/combo/chart-filters.html b/combo/apps/dataviz/templates/combo/chart-filters.html index e8e5e4da..b231d9ef 100644 --- a/combo/apps/dataviz/templates/combo/chart-filters.html +++ b/combo/apps/dataviz/templates/combo/chart-filters.html @@ -1,61 +1,61 @@ {% load i18n %} {% block cell-content %} -

{{ cell.title }}

+

{{ cell.title }}

-
- {% if form.fields %} -
- {{ form.as_p }} -
- -
-
- {% else %} -

- {% blocktrans trimmed %} - No filters are available. Note that only filters that are shared between all chart cells will appear. Furthermore, in case they have a value, it must be the same accross all cells. - {% endblocktrans %} -

- {% endif %} -
+
+ {% if form.fields %} +
+ {{ form.as_p }} +
+ +
+
+ {% else %} +

+ {% blocktrans trimmed %} + No filters are available. Note that only filters that are shared between all chart cells will appear. Furthermore, in case they have a value, it must be the same accross all cells. + {% endblocktrans %} +

+ {% endif %} +
- + {% endblock %} diff --git a/combo/apps/dataviz/templates/combo/chartngcell.html b/combo/apps/dataviz/templates/combo/chartngcell.html index 10e47303..ba15acc9 100644 --- a/combo/apps/dataviz/templates/combo/chartngcell.html +++ b/combo/apps/dataviz/templates/combo/chartngcell.html @@ -1,41 +1,41 @@ {% load i18n %} {% if cell.title %}

{{cell.title}}

{% endif %} {% if cell.chart_type == "table" or cell.chart_type == "table-inverted" %} -
- + {% else %} -
- -
- +
+ +
+ {% endif %} diff --git a/combo/apps/dataviz/templates/combo/chartngcell_form.html b/combo/apps/dataviz/templates/combo/chartngcell_form.html index 6dbdb886..85bb701e 100644 --- a/combo/apps/dataviz/templates/combo/chartngcell_form.html +++ b/combo/apps/dataviz/templates/combo/chartngcell_form.html @@ -1,33 +1,33 @@
-{{ form.as_p }} -{% if cell.statistic and cell.chart_type != "table" and cell.chart_type != "table-inverted" %} -
- -
-{% endif %} + {{ form.as_p }} + {% if cell.statistic and cell.chart_type != "table" and cell.chart_type != "table-inverted" %} +
+ +
+ {% endif %}
diff --git a/combo/apps/dataviz/templates/combo/gauge-cell.html b/combo/apps/dataviz/templates/combo/gauge-cell.html index 3c5e7ddc..6e1ec197 100644 --- a/combo/apps/dataviz/templates/combo/gauge-cell.html +++ b/combo/apps/dataviz/templates/combo/gauge-cell.html @@ -1,16 +1,16 @@ {% block cell-content %} -
- - - {% if title %} - {% if url %}{% endif %}{{title}}{% if url %}{% endif %} - {% endif %} -
+
+ + + {% if title %} + {% if url %}{% endif %}{{title}}{% if url %}{% endif %} + {% endif %} +
{% endblock %} diff --git a/combo/apps/family/templates/combo/family/manager/weekly_agenda_cell_form.html b/combo/apps/family/templates/combo/family/manager/weekly_agenda_cell_form.html index 03ac52fa..e7721deb 100644 --- a/combo/apps/family/templates/combo/family/manager/weekly_agenda_cell_form.html +++ b/combo/apps/family/templates/combo/family/manager/weekly_agenda_cell_form.html @@ -1,17 +1,17 @@ {% extends "combo/cell_form.html" %} {% block cell-form %} -{{ block.super }} - + {{ block.super }} + {% endblock %} diff --git a/combo/apps/family/templates/combo/family/weekly_agenda.html b/combo/apps/family/templates/combo/family/weekly_agenda.html index 6ba8ce68..fc7c442a 100644 --- a/combo/apps/family/templates/combo/family/weekly_agenda.html +++ b/combo/apps/family/templates/combo/family/weekly_agenda.html @@ -1,58 +1,58 @@ {% load i18n %} {% block cell-content %} -{% if json.data %} + {% if json.data %} -{% if cell.title %} -

- {{ cell.title }} -

-{% endif %} + {% if cell.title %} +

+ {{ cell.title }} +

+ {% endif %} -
-{% with first_monday=json.data.0.date|date|adjust_to_week_monday last_item=json.data|last %} - {% with last_day=last_item.date|date|adjust_to_week_monday|add_days:6 %} - {% now 'Y-m-W' as current_week %} - {% spaceless %} - -
-
- {% for day in first_monday|iterate_days_until:last_day %} - {% if day.weekday == 0 %} - {% with sunday=day|add_days:6 %} -
- {% blocktrans with day_date=day|date:'d/m' sunday_date=sunday|date:'d/m' %}Week
of {{ day_date }} to {{ sunday_date }}{% endblocktrans %} -
- {% endwith %} - {% endif %} -
-
- {{ day|date:"l d/m" }} -
- {% with day_str=day|date:"Y-m-d" %} - {% for item in json.data %} - {% if item.date == day_str %} -
-
-
{{ item.label }}
-
+
+ {% with first_monday=json.data.0.date|date|adjust_to_week_monday last_item=json.data|last %} + {% with last_day=last_item.date|date|adjust_to_week_monday|add_days:6 %} + {% now 'Y-m-W' as current_week %} + {% spaceless %} + +
+
+ {% for day in first_monday|iterate_days_until:last_day %} + {% if day.weekday == 0 %} + {% with sunday=day|add_days:6 %} +
+ {% blocktrans with day_date=day|date:'d/m' sunday_date=sunday|date:'d/m' %}Week
of {{ day_date }} to {{ sunday_date }}{% endblocktrans %} +
+ {% endwith %} {% endif %} +
+
+ {{ day|date:"l d/m" }} +
+ {% with day_str=day|date:"Y-m-d" %} + {% for item in json.data %} + {% if item.date == day_str %} +
+
+
{{ item.label }}
+
+ {% endif %} + {% endfor %} + {% endwith %} +
{% trans "No activity this week" %}
+
{% endfor %} - {% endwith %} -
{% trans "No activity this week" %}
+
- {% endfor %} -
-
- - {% if booking_form_url %} - - {% trans "Update bookings" %} - - {% endif %} - {% endspaceless %} - {% endwith %} -{% endwith %} -
-{% endif %} + + {% if booking_form_url %} + + {% trans "Update bookings" %} + + {% endif %} + {% endspaceless %} + {% endwith %} + {% endwith %} +
+ {% endif %} {% endblock %} diff --git a/combo/apps/fargo/templates/combo/fargo/recent-documents-cell.html b/combo/apps/fargo/templates/combo/fargo/recent-documents-cell.html index 1f49c7b7..378a811d 100644 --- a/combo/apps/fargo/templates/combo/fargo/recent-documents-cell.html +++ b/combo/apps/fargo/templates/combo/fargo/recent-documents-cell.html @@ -1,15 +1,15 @@ {% load i18n %} {% block cell-content %} - + {% endblock %} diff --git a/combo/apps/gallery/templates/combo/gallery_image_form.html b/combo/apps/gallery/templates/combo/gallery_image_form.html index e38d1016..973d6123 100644 --- a/combo/apps/gallery/templates/combo/gallery_image_form.html +++ b/combo/apps/gallery/templates/combo/gallery_image_form.html @@ -2,25 +2,25 @@ {% load i18n %} {% block appbar %} -{% if object.id %} -

{% trans "Edit Image" %}

-{% else %} -

{% trans "New Image" %}

-{% endif %} + {% if object.id %} +

{% trans "Edit Image" %}

+ {% else %} +

{% trans "New Image" %}

+ {% endif %} {% endblock %} {% block content %} -
- {% csrf_token %} - {{ form.as_p }} -
- - {% if object.id %} - {% trans 'Cancel' %} - {% else %} - {% trans 'Cancel' %} - {% endif %} -
-
+
+ {% csrf_token %} + {{ form.as_p }} +
+ + {% if object.id %} + {% trans 'Cancel' %} + {% else %} + {% trans 'Cancel' %} + {% endif %} +
+
{% endblock %} diff --git a/combo/apps/gallery/templates/combo/gallery_manager.html b/combo/apps/gallery/templates/combo/gallery_manager.html index a2befa48..c7bdca2d 100644 --- a/combo/apps/gallery/templates/combo/gallery_manager.html +++ b/combo/apps/gallery/templates/combo/gallery_manager.html @@ -2,26 +2,26 @@ {% load static thumbnail i18n %} {% block cell-form %} - + - - + + -
-{{form.as_p}} -
+
+ {{form.as_p}} +
{% endblock %} diff --git a/combo/apps/gallery/templates/combo/gallerycell.html b/combo/apps/gallery/templates/combo/gallerycell.html index 24be0780..a821502c 100644 --- a/combo/apps/gallery/templates/combo/gallerycell.html +++ b/combo/apps/gallery/templates/combo/gallerycell.html @@ -1,37 +1,37 @@ {% load thumbnail %} {% block cell-content %} -{% if cell.title %} -

{{ cell.title }}

-{% endif %} - - + + {% endblock %} diff --git a/combo/apps/kb/templates/combo/latest-page-updates-cell.html b/combo/apps/kb/templates/combo/latest-page-updates-cell.html index 9ae02195..3ed94eba 100644 --- a/combo/apps/kb/templates/combo/latest-page-updates-cell.html +++ b/combo/apps/kb/templates/combo/latest-page-updates-cell.html @@ -1,22 +1,22 @@ {% load i18n %} {% block cell-content %} -

{% trans "Latest Page Updates" %}

- +

{% trans "Latest Page Updates" %}

+ {% endblock %} diff --git a/combo/apps/lingo/templates/lingo/basketitem_error_list.html b/combo/apps/lingo/templates/lingo/basketitem_error_list.html index fb314c1c..228bb6ea 100644 --- a/combo/apps/lingo/templates/lingo/basketitem_error_list.html +++ b/combo/apps/lingo/templates/lingo/basketitem_error_list.html @@ -2,57 +2,57 @@ {% load i18n %} {% block appbar %} -

{% trans 'Payments in error' %}

+

{% trans 'Payments in error' %}

{% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Payments in error' %} + {{ block.super }} + {% trans 'Payments in error' %} {% endblock %} {% block content %} -
-
-

-
+
+
+

+
-{% if object_list %} - - - - - - - - - -{% for object in object_list %} - - - - - - -{% endfor %} - -
{% trans 'Item' %}{% trans 'Amount' %}{% trans 'Date' %}
{% if object.source_url %}{{ object.subject }}{% else %}{{ object.subject }}{% endif %}{{ object.amount }} €{{ object.payment_date }} - {% if object.transaction_status != 99 %} - {% trans "See transaction" %} - {% if object.source_url %} -
- {% trans "Mark as notified" %} - {% endif %} + {% if object_list %} + + + + + + + + + + {% for object in object_list %} + + + + + + + {% endfor %} + +
{% trans 'Item' %}{% trans 'Amount' %}{% trans 'Date' %}
{% if object.source_url %}{{ object.subject }}{% else %}{{ object.subject }}{% endif %}{{ object.amount }} €{{ object.payment_date }} + {% if object.transaction_status != 99 %} + {% trans "See transaction" %} + {% if object.source_url %} +
+ {% trans "Mark as notified" %} + {% endif %} + {% endif %} +
+ + {% include "gadjo/pagination.html" %} + + {% else %} +
+ {% blocktrans %} + This site doesn't have any payment in error. + {% endblocktrans %} +
{% endif %} -
- -{% include "gadjo/pagination.html" %} - -{% else %} -
- {% blocktrans %} - This site doesn't have any payment in error. - {% endblocktrans %} -
-{% endif %} -
+
{% endblock %} diff --git a/combo/apps/lingo/templates/lingo/combo/basket.html b/combo/apps/lingo/templates/lingo/combo/basket.html index 2eb11e8f..ff2d0a39 100644 --- a/combo/apps/lingo/templates/lingo/combo/basket.html +++ b/combo/apps/lingo/templates/lingo/combo/basket.html @@ -1,40 +1,40 @@ {% load i18n %} {% block cell-content %} -{% if regies %} -

{% trans "Basket" %}

-
-{% for regie_info in regies %} -
-{% if regies|length != 1 %}

{{regie_info.regie.label}}

{% endif %} - -
+ {% if regies %} +

{% trans "Basket" %}

+
+ {% for regie_info in regies %} +
+ {% if regies|length != 1 %}

{{regie_info.regie.label}}

{% endif %} + +
-{% if not regie_info.regie.can_pay_only_one_basket_item %} -
-{% csrf_token %} -

{% trans "Total:" %} {{ regie_info.total }} €

- - - -
-{% endif %} + {% if not regie_info.regie.can_pay_only_one_basket_item %} +
+ {% csrf_token %} +

{% trans "Total:" %} {{ regie_info.total }} €

+ + + +
+ {% endif %} -{% endfor %} -{% endif %} -
+ {% endfor %} + {% endif %} +
{% endblock %} diff --git a/combo/apps/lingo/templates/lingo/combo/basket_link.html b/combo/apps/lingo/templates/lingo/combo/basket_link.html index db11f45b..a1792266 100644 --- a/combo/apps/lingo/templates/lingo/combo/basket_link.html +++ b/combo/apps/lingo/templates/lingo/combo/basket_link.html @@ -1,13 +1,13 @@ {% load i18n %} {% block cell-content %} -{% if total %} -

{% trans 'Basket:' %} - {% blocktrans count counter=items|length %} - {{counter}} item - {% plural %} - {{counter}} items - {% endblocktrans %} - ({{ total }} €)

- -{% endif %} + {% if total %} +

{% trans 'Basket:' %} + {% blocktrans count counter=items|length %} + {{counter}} item + {% plural %} + {{counter}} items + {% endblocktrans %} + ({{ total }} €)

+ + {% endif %} {% endblock %} diff --git a/combo/apps/lingo/templates/lingo/combo/cancel-item.html b/combo/apps/lingo/templates/lingo/combo/cancel-item.html index 687d924b..0665d872 100644 --- a/combo/apps/lingo/templates/lingo/combo/cancel-item.html +++ b/combo/apps/lingo/templates/lingo/combo/cancel-item.html @@ -3,18 +3,18 @@ - -
-
- {% csrf_token %} -{% blocktrans with subject=object.subject %} -Are you really sure you want to remove "{{subject}}"? -{% endblocktrans %} -
- - {% trans 'Cancel' %} -
-
+ +
+
+ {% csrf_token %} + {% blocktrans with subject=object.subject %} + Are you really sure you want to remove "{{subject}}"? + {% endblocktrans %} +
+ + {% trans 'Cancel' %}
- +
+
+ diff --git a/combo/apps/lingo/templates/lingo/combo/invoice_email_notification_body.html b/combo/apps/lingo/templates/lingo/combo/invoice_email_notification_body.html index d0a3d319..44d1cc73 100644 --- a/combo/apps/lingo/templates/lingo/combo/invoice_email_notification_body.html +++ b/combo/apps/lingo/templates/lingo/combo/invoice_email_notification_body.html @@ -4,15 +4,15 @@

{% blocktrans with id=invoice.id creation_date=invoice.creation_date|date:"DATE_FORMAT" amount=invoice.amount %} We inform you that your invoice nr. {{ id }} issued on {{ creation_date }} of amount of {{ amount }}€ is available. - {% endblocktrans %}

+ {% endblocktrans %}

{% if invoice.online_payment %} -

{% blocktrans %}You can view and pay it online.{% endblocktrans %}

+

{% blocktrans %}You can view and pay it online.{% endblocktrans %}

{% else %} -

{% blocktrans %}You can view it on the portal.{% endblocktrans %}

- {% if invoice.no_online_payment_reason == 'autobilling' %} -

{% blocktrans with debit_date=invoice.payment_limit_date|date:"DATE_FORMAT" %}The amount of this invoice will be debited from your account at {{ debit_date }}.{% endblocktrans %} -

- {% endif %} +

{% blocktrans %}You can view it on the portal.{% endblocktrans %}

+ {% if invoice.no_online_payment_reason == 'autobilling' %} +

{% blocktrans with debit_date=invoice.payment_limit_date|date:"DATE_FORMAT" %}The amount of this invoice will be debited from your account at {{ debit_date }}.{% endblocktrans %} +

+ {% endif %} {% endif %} diff --git a/combo/apps/lingo/templates/lingo/combo/invoice_fullpage.html b/combo/apps/lingo/templates/lingo/combo/invoice_fullpage.html index c77c6a35..98fbeda4 100644 --- a/combo/apps/lingo/templates/lingo/combo/invoice_fullpage.html +++ b/combo/apps/lingo/templates/lingo/combo/invoice_fullpage.html @@ -1,21 +1,21 @@ {% load i18n %} - + {% blocktrans %}Invoice number {{ number }}{% endblocktrans %} - - + + -{% if messages %} - -{% endif %} + {% if messages %} + + {% endif %} -
- {% include 'lingo/combo/item.html' %} -
- +
+ {% include 'lingo/combo/item.html' %} +
+ \ No newline at end of file diff --git a/combo/apps/lingo/templates/lingo/combo/item.html b/combo/apps/lingo/templates/lingo/combo/item.html index 93ec8418..f71b1f5f 100644 --- a/combo/apps/lingo/templates/lingo/combo/item.html +++ b/combo/apps/lingo/templates/lingo/combo/item.html @@ -2,76 +2,76 @@
{% if item %} -

- {% blocktrans with number=item.display_id %} - Item nr. {{ number }} - {% endblocktrans %} -

-
-
- {% if item.subject %} -

- {% blocktrans with label=item.subject %} - Label: {{ label }} - {% endblocktrans %} -

- {% endif %} -
- {% blocktrans with amount=item.total_amount|floatformat:"2" %} - Total amount: {{ amount }}€ - {% endblocktrans %} -
- {% if item.amount %} -
- {% blocktrans with amount=item.amount|floatformat:"2" %} - Amount to pay: {{ amount }}€ - {% endblocktrans %} -
- {% endif %} - {% if item.amount_paid %} -
- {% blocktrans with amount=item.amount_paid|floatformat:"2" %} - Amount already paid: {{ amount }}€ - {% endblocktrans %} -
- {% endif %} -
{% trans "Issue date:" %} {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}
- {% if item.payment_limit_date %} -
{% trans "Payment due date:" %} - {{ item.payment_limit_date|date:"SHORT_DATE_FORMAT" }} {% trans "(up to and including)" %}
- {% endif %} - {% if item.payment_date %} - - {% elif item.paid %} - - {% endif %} - {% if item.no_online_payment_reason_details %} -
{{ item.no_online_payment_reason_details }}
- {% endif %} - {% if item.waiting_date and not item.paid %} - - {% endif %} - {% if not item.paid and item.online_payment and item.amount >= regie.payment_min_amount and not item.waiting_date %} - {% csrf_token %} - {% if not user.is_authenticated %} - + {% endif %} {% endblock %} diff --git a/combo/apps/lingo/templates/lingo/combo/payment-status.html b/combo/apps/lingo/templates/lingo/combo/payment-status.html index 59583274..ac0a7072 100644 --- a/combo/apps/lingo/templates/lingo/combo/payment-status.html +++ b/combo/apps/lingo/templates/lingo/combo/payment-status.html @@ -2,52 +2,52 @@ {% load static i18n %} {% block combo-content %} -{% block wait-js %} - -{% endblock %} - -{% block wait-content%} -
- {% block wait-message %} -

{% trans "Please wait while your request is being processed..." %}

+ }); + } + }); + + {% endblock %} + + {% block wait-content%} +
+ {% block wait-message %} +

{% trans "Please wait while your request is being processed..." %}

+ {% endblock %} + +

{% trans "Continue" %}

+

+
{% endblock %} - -

{% trans "Continue" %}

-

-
-{% endblock %} {% endblock %} diff --git a/combo/apps/lingo/templates/lingo/combo/recent_transactions.html b/combo/apps/lingo/templates/lingo/combo/recent_transactions.html index 600a18ad..8aa71483 100644 --- a/combo/apps/lingo/templates/lingo/combo/recent_transactions.html +++ b/combo/apps/lingo/templates/lingo/combo/recent_transactions.html @@ -1,20 +1,20 @@ {% load i18n %} {% block cell-content %} -

{% trans "Recent Transactions" %}

-
    - {% for transaction in transactions %} -
  • {{ transaction.start_date|date:"d E o H:i"|lower }} - {% if transaction.is_paid %} -
      - {% for item in transaction.items.all %} -
    • {{ item.subject }}: {{ item.amount }} € - {% if item.source_url and item.user == request.user %}({% trans 'open' %}){% endif %}
    • +

      {% trans "Recent Transactions" %}

      +
        + {% for transaction in transactions %} +
      • {{ transaction.start_date|date:"d E o H:i"|lower }} + {% if transaction.is_paid %} +
          + {% for item in transaction.items.all %} +
        • {{ item.subject }}: {{ item.amount }} € + {% if item.source_url and item.user == request.user %}({% trans 'open' %}){% endif %}
        • + {% endfor %} +
        + {% else %} + {{ transaction.get_status_label }} + {% endif %} +
      • {% endfor %} -
      - {% else %} - {{ transaction.get_status_label }} - {% endif %} - - {% endfor %} -
    +
{% endblock %} diff --git a/combo/apps/lingo/templates/lingo/combo/self-declared-invoice-payment.html b/combo/apps/lingo/templates/lingo/combo/self-declared-invoice-payment.html index 2b0387b3..efee7a16 100644 --- a/combo/apps/lingo/templates/lingo/combo/self-declared-invoice-payment.html +++ b/combo/apps/lingo/templates/lingo/combo/self-declared-invoice-payment.html @@ -1,31 +1,31 @@ {% load i18n %} {% block cell-content %} -{% if title %}

{{ title }}

{% endif %} -
-{% if text %}

{{ text|safe }}

{% endif %} -
-
-
- {% trans 'Invoice Number' %} - * -
-
- -
+ {% if title %}

{{ title }}

{% endif %} +
+ {% if text %}

{{ text|safe }}

{% endif %} + +
+
+ {% trans 'Invoice Number' %} + * +
+
+ +
+
+
+
+ {% trans 'Invoice Amount' %} + * +
+
+ +
+
+ +
+ +
+
-
-
- {% trans 'Invoice Amount' %} - * -
-
- -
-
- -
- -
- -
{% endblock %} diff --git a/combo/apps/lingo/templates/lingo/manager_base.html b/combo/apps/lingo/templates/lingo/manager_base.html index c59e0267..2b688140 100644 --- a/combo/apps/lingo/templates/lingo/manager_base.html +++ b/combo/apps/lingo/templates/lingo/manager_base.html @@ -2,10 +2,10 @@ {% load i18n %} {% block appbar %} -

{% trans 'Online Payment' %}

+

{% trans 'Online Payment' %}

{% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Online Payment' %} + {{ block.super }} + {% trans 'Online Payment' %} {% endblock %} diff --git a/combo/apps/lingo/templates/lingo/payment_form.html b/combo/apps/lingo/templates/lingo/payment_form.html index 744bf7b8..501d59d4 100644 --- a/combo/apps/lingo/templates/lingo/payment_form.html +++ b/combo/apps/lingo/templates/lingo/payment_form.html @@ -1,16 +1,16 @@ {% load i18n %} - - - -

-{% trans "Please wait while your browser is being redirected to the payment website..." %} -

-
- {% for field in form.fields %} - - {% endfor %} - -
- + + + +

+ {% trans "Please wait while your browser is being redirected to the payment website..." %} +

+
+ {% for field in form.fields %} + + {% endfor %} + +
+ diff --git a/combo/apps/lingo/templates/lingo/paymentbackend_confirm_delete.html b/combo/apps/lingo/templates/lingo/paymentbackend_confirm_delete.html index 64dd5454..eefada9e 100644 --- a/combo/apps/lingo/templates/lingo/paymentbackend_confirm_delete.html +++ b/combo/apps/lingo/templates/lingo/paymentbackend_confirm_delete.html @@ -2,16 +2,16 @@ {% load i18n %} {% block appbar %} -

{{ view.model.get_verbose_name }}

+

{{ view.model.get_verbose_name }}

{% endblock %} {% block content %} -
- {% csrf_token %} - {% blocktrans %}Are you sure you want to delete this?{% endblocktrans %} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {% blocktrans %}Are you sure you want to delete this?{% endblocktrans %} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/combo/apps/lingo/templates/lingo/paymentbackend_form.html b/combo/apps/lingo/templates/lingo/paymentbackend_form.html index 55789315..c59f094d 100644 --- a/combo/apps/lingo/templates/lingo/paymentbackend_form.html +++ b/combo/apps/lingo/templates/lingo/paymentbackend_form.html @@ -2,20 +2,20 @@ {% load i18n %} {% block appbar %} -{% if object.id %} -

{% trans "Edit Payment backend" %}

-{% else %} -

{% trans "New Payment backend" %}

-{% endif %} + {% if object.id %} +

{% trans "Edit Payment backend" %}

+ {% else %} +

{% trans "New Payment backend" %}

+ {% endif %} {% endblock %} {% block content %} -
- {% csrf_token %} - {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/combo/apps/lingo/templates/lingo/paymentbackend_list.html b/combo/apps/lingo/templates/lingo/paymentbackend_list.html index f9af2f73..a68e1d48 100644 --- a/combo/apps/lingo/templates/lingo/paymentbackend_list.html +++ b/combo/apps/lingo/templates/lingo/paymentbackend_list.html @@ -2,37 +2,37 @@ {% load i18n %} {% block appbar %} -

{% trans 'Payment backends' %}

- -{% trans 'New' %} - +

{% trans 'Payment backends' %}

+ + {% trans 'New' %} + {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Payment backends' %} + {{ block.super }} + {% trans 'Payment backends' %} {% endblock %} {% block content %} -{% if object_list %} - -{% else %} -
- {% blocktrans %} - This site doesn't have any payment backend yet. Click on the "New" button in the top - right of the page to add a first one. - {% endblocktrans %} -
-{% endif %} + {% if object_list %} + + {% else %} +
+ {% blocktrans %} + This site doesn't have any payment backend yet. Click on the "New" button in the top + right of the page to add a first one. + {% endblocktrans %} +
+ {% endif %} {% endblock %} diff --git a/combo/apps/lingo/templates/lingo/regie_confirm_delete.html b/combo/apps/lingo/templates/lingo/regie_confirm_delete.html index 0af7dd37..5f90e439 100644 --- a/combo/apps/lingo/templates/lingo/regie_confirm_delete.html +++ b/combo/apps/lingo/templates/lingo/regie_confirm_delete.html @@ -2,16 +2,16 @@ {% load i18n %} {% block appbar %} -

{{ view.model.get_verbose_name }}

+

{{ view.model.get_verbose_name }}

{% endblock %} {% block content %} -
- {% csrf_token %} - {% blocktrans %}Are you sure you want to delete this?{% endblocktrans %} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {% blocktrans %}Are you sure you want to delete this?{% endblocktrans %} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/combo/apps/lingo/templates/lingo/regie_form.html b/combo/apps/lingo/templates/lingo/regie_form.html index 567298d5..3ddf4028 100644 --- a/combo/apps/lingo/templates/lingo/regie_form.html +++ b/combo/apps/lingo/templates/lingo/regie_form.html @@ -2,24 +2,24 @@ {% load i18n %} {% block appbar %} -{% if object.id %} -

{% trans "Edit Regie" %}

-{% else %} -

{% trans "New Regie" %}

-{% endif %} + {% if object.id %} +

{% trans "Edit Regie" %}

+ {% else %} +

{% trans "New Regie" %}

+ {% endif %} {% endblock %} {% block content %} -
- {% if object.pk %} - {% if callback_url %}

{{ callback_url }}

{% endif %} - {% if return_url %}

{{ return_url }}

{% endif %} - {% endif %} - {% csrf_token %} - {{ form.as_p }} -
- - {% trans 'Cancel' %} -
-
+
+ {% if object.pk %} + {% if callback_url %}

{{ callback_url }}

{% endif %} + {% if return_url %}

{{ return_url }}

{% endif %} + {% endif %} + {% csrf_token %} + {{ form.as_p }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/combo/apps/lingo/templates/lingo/regie_list.html b/combo/apps/lingo/templates/lingo/regie_list.html index 6db40ef8..112825d6 100644 --- a/combo/apps/lingo/templates/lingo/regie_list.html +++ b/combo/apps/lingo/templates/lingo/regie_list.html @@ -2,38 +2,38 @@ {% load i18n %} {% block appbar %} -

{% trans 'Regies' %}

- -{% trans 'New' %} - +

{% trans 'Regies' %}

+ + {% trans 'New' %} + {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans 'Regies' %} + {{ block.super }} + {% trans 'Regies' %} {% endblock %} {% block content %} -{% if object_list %} - -{% else %} -
- {% blocktrans %} - This site doesn't have any regie yet. Click on the "New" button in the top - right of the page to add a first one. - {% endblocktrans %} -
-{% endif %} + {% if object_list %} + + {% else %} +
+ {% blocktrans %} + This site doesn't have any regie yet. Click on the "New" button in the top + right of the page to add a first one. + {% endblocktrans %} +
+ {% endif %} {% endblock %} diff --git a/combo/apps/lingo/templates/lingo/tipi_form.html b/combo/apps/lingo/templates/lingo/tipi_form.html index 0816b5e3..c70c8ab1 100644 --- a/combo/apps/lingo/templates/lingo/tipi_form.html +++ b/combo/apps/lingo/templates/lingo/tipi_form.html @@ -9,15 +9,15 @@
  • {% trans "Your browser is blocking popups but they are required to start the payment, make sure they are allowed for this site." %}
  • {% if regies|length > 1 %} -

    - -

    +

    + +

    {% else %} - + {% endif %} {% endwith %} diff --git a/combo/manager/templates/registration/login.html b/combo/manager/templates/registration/login.html index da0bc772..97c3e13b 100644 --- a/combo/manager/templates/registration/login.html +++ b/combo/manager/templates/registration/login.html @@ -2,9 +2,9 @@ {% load i18n %} {% block content %} -
    -{% csrf_token %} -{{ form.as_p }} - -
    +
    + {% csrf_token %} + {{ form.as_p }} + +
    {% endblock %} diff --git a/combo/profile/templates/combo/profile.html b/combo/profile/templates/combo/profile.html index 52f29584..da33be23 100644 --- a/combo/profile/templates/combo/profile.html +++ b/combo/profile/templates/combo/profile.html @@ -1,14 +1,14 @@ {% load i18n %} {% block cell-content %} -

    {% trans "Profile" %}

    -
    -{% for key, details in profile_fields.items %} - {% if details.value and details.user_visible %} -

    {{ details.label }} {{ details.value }}

    - {% endif %} -{% endfor %} -{% if error == 'unknown user' %} -

    {% trans 'Unknown User' %}

    -{% endif %} -
    +

    {% trans "Profile" %}

    +
    + {% for key, details in profile_fields.items %} + {% if details.value and details.user_visible %} +

    {{ details.label }} {{ details.value }}

    + {% endif %} + {% endfor %} + {% if error == 'unknown user' %} +

    {% trans 'Unknown User' %}

    + {% endif %} +
    {% endblock %} diff --git a/combo/public/templates/combo/404.html b/combo/public/templates/combo/404.html index fcddfdc7..3989ed35 100644 --- a/combo/public/templates/combo/404.html +++ b/combo/public/templates/combo/404.html @@ -2,13 +2,13 @@ {% load i18n %} {% block combo-content %} -
    -

    {% trans "This page doesn't exist" %}

    - {% blocktrans %} -

    - Maybe it got removed, maybe a link is wrong, luckily there's still - the home page to get back to a safe place. -

    - {% endblocktrans %} -
    +
    +

    {% trans "This page doesn't exist" %}

    + {% blocktrans %} +

    + Maybe it got removed, maybe a link is wrong, luckily there's still + the home page to get back to a safe place. +

    + {% endblocktrans %} +
    {% endblock %} diff --git a/combo/public/templates/combo/asset_picture_fragment.html b/combo/public/templates/combo/asset_picture_fragment.html index 2962e6d6..ca1340cc 100644 --- a/combo/public/templates/combo/asset_picture_fragment.html +++ b/combo/public/templates/combo/asset_picture_fragment.html @@ -2,6 +2,6 @@ {% get_asset cell=cell type='picture' as asset %} {% if asset %} - + {% endif %} diff --git a/combo/public/templates/combo/deferred-cell.html b/combo/public/templates/combo/deferred-cell.html index 6b0b11c3..fb586081 100644 --- a/combo/public/templates/combo/deferred-cell.html +++ b/combo/public/templates/combo/deferred-cell.html @@ -1,6 +1,6 @@ {% block cell-content %} -{% load i18n %} -
    -{{ cell.loading_message }} -
    + {% load i18n %} +
    + {{ cell.loading_message }} +
    {% endblock %} diff --git a/combo/public/templates/combo/empty_site.html b/combo/public/templates/combo/empty_site.html index acf62220..4b53708c 100644 --- a/combo/public/templates/combo/empty_site.html +++ b/combo/public/templates/combo/empty_site.html @@ -1,66 +1,66 @@ {% load i18n %} - - - - - + #content a { + color: inherit; + position: relative; + z-index: 50; + } + + + -
    -

    {% trans 'Welcome!' %}

    - {% blocktrans %} -

    -Your installation of Combo was successful and you can now play with it -to your heart's content. It is currently empty, your first move should -probably be to head to the management interface to add some pages. -

    - {% endblocktrans %} -

    -→ {% url 'combo-manager-homepage' %} -

    -
    +
    +

    {% trans 'Welcome!' %}

    + {% blocktrans %} +

    + Your installation of Combo was successful and you can now play with it + to your heart's content. It is currently empty, your first move should + probably be to head to the management interface to add some pages. +

    + {% endblocktrans %} +

    + → {% url 'combo-manager-homepage' %} +

    +
    - + diff --git a/combo/public/templates/combo/feed-cell.html b/combo/public/templates/combo/feed-cell.html index 1400718d..6f93d3b3 100644 --- a/combo/public/templates/combo/feed-cell.html +++ b/combo/public/templates/combo/feed-cell.html @@ -1,17 +1,17 @@ {% load i18n %} {% block cell-content %} -{% if cell.title %} -

    {{ cell.title }}

    -{% endif %} -{% include "combo/asset_picture_fragment.html" %} -
    -{% for entry in feed.entries %} -{% if entry.link %} -

    {{entry.title}}

    - {% else %} -

    {{entry.title}}

    -{% endif %} -{% if entry.summary %}
    {{entry.summary|safe}}
    {% endif %} -{% endfor %} -
    + {% if cell.title %} +

    {{ cell.title }}

    + {% endif %} + {% include "combo/asset_picture_fragment.html" %} +
    + {% for entry in feed.entries %} + {% if entry.link %} +

    {{entry.title}}

    + {% else %} +

    {{entry.title}}

    + {% endif %} + {% if entry.summary %}
    {{entry.summary|safe}}
    {% endif %} + {% endfor %} +
    {% endblock %} diff --git a/combo/public/templates/combo/json-cell.html b/combo/public/templates/combo/json-cell.html index c1082a4e..9d69bbb3 100644 --- a/combo/public/templates/combo/json-cell.html +++ b/combo/public/templates/combo/json-cell.html @@ -1,7 +1,7 @@ {% block cell-content %} -{% if title %}

    {{title}}

    {% endif %} -{% include "combo/asset_picture_fragment.html" %} - + --> {% endblock %} diff --git a/combo/public/templates/combo/json-error-cell.html b/combo/public/templates/combo/json-error-cell.html index 70555b24..bfd24ba0 100644 --- a/combo/public/templates/combo/json-error-cell.html +++ b/combo/public/templates/combo/json-error-cell.html @@ -1,5 +1,5 @@ {% load i18n %} {% block cell-content %} -{% if title %}

    {{title}}

    {% endif %} -

    {% trans "Technical error getting data." %}

    + {% if title %}

    {{title}}

    {% endif %} +

    {% trans "Technical error getting data." %}

    {% endblock %} diff --git a/combo/public/templates/combo/json-list-cell.html b/combo/public/templates/combo/json-list-cell.html index 2a25da3e..f0b5d420 100644 --- a/combo/public/templates/combo/json-list-cell.html +++ b/combo/public/templates/combo/json-list-cell.html @@ -1,12 +1,12 @@ {% block cell-content %} -{% if title %}

    {{title}}

    {% endif %} -{% include "combo/asset_picture_fragment.html" %} - -
    + {% if title %}

    {{title}}

    {% endif %} + {% include "combo/asset_picture_fragment.html" %} + +
    {% endblock %} diff --git a/combo/public/templates/combo/link-cell.html b/combo/public/templates/combo/link-cell.html index f8c4fa17..4c15d348 100644 --- a/combo/public/templates/combo/link-cell.html +++ b/combo/public/templates/combo/link-cell.html @@ -1,4 +1,4 @@ {% block cell-content %} -{% include "combo/asset_picture_fragment.html" %} -{{title}} + {% include "combo/asset_picture_fragment.html" %} + {{title}} {% endblock %} diff --git a/combo/public/templates/combo/link-list-cell.html b/combo/public/templates/combo/link-list-cell.html index fb6657e2..72bbcae1 100644 --- a/combo/public/templates/combo/link-list-cell.html +++ b/combo/public/templates/combo/link-list-cell.html @@ -1,34 +1,34 @@ {% load i18n %} {% block cell-content %} -{% spaceless %} -{% block cell-header %} -{% if title %}

    {{ title }}

    {% endif %} -{% include "combo/asset_picture_fragment.html" %} -{% endblock cell-header %} - + {% endspaceless %} {% endblock %} diff --git a/combo/public/templates/combo/mellon_base_template.html b/combo/public/templates/combo/mellon_base_template.html index 78ab1895..41df702d 100644 --- a/combo/public/templates/combo/mellon_base_template.html +++ b/combo/public/templates/combo/mellon_base_template.html @@ -1,7 +1,7 @@ {% extends "combo/page_template.html" %} {% block combo-content %} -{% block mellon_content %} -{% endblock %} + {% block mellon_content %} + {% endblock %} {% endblock %} diff --git a/combo/public/templates/combo/menu-cell.html b/combo/public/templates/combo/menu-cell.html index 90b16aa7..98bc19ca 100644 --- a/combo/public/templates/combo/menu-cell.html +++ b/combo/public/templates/combo/menu-cell.html @@ -1,3 +1,3 @@ {% block cell-content %} -{{menu}} + {{menu}} {% endblock %} diff --git a/combo/public/templates/combo/menu.html b/combo/public/templates/combo/menu.html index db71a32c..0ac90627 100644 --- a/combo/public/templates/combo/menu.html +++ b/combo/public/templates/combo/menu.html @@ -1,20 +1,20 @@ {% load i18n %} {% if menuitems %} -
      -{% spaceless %} -{% for menuitem in menuitems %} -
    • - - {{ menuitem.page.title }} - - {% if depth > 1 %} - {% show_menu current_page=menuitem.page level=-1 depth=depth reduce_depth=True ignore_visibility=ignore_visibility is_submenu=True %} - {% endif %} -
    • -{% endfor %} -{% endspaceless %} -
    +
      + {% spaceless %} + {% for menuitem in menuitems %} +
    • + + {{ menuitem.page.title }} + + {% if depth > 1 %} + {% show_menu current_page=menuitem.page level=-1 depth=depth reduce_depth=True ignore_visibility=ignore_visibility is_submenu=True %} + {% endif %} +
    • + {% endfor %} + {% endspaceless %} +
    {% endif %} diff --git a/combo/public/templates/combo/page_template.html b/combo/public/templates/combo/page_template.html index 68e83e7d..1a70ceff 100644 --- a/combo/public/templates/combo/page_template.html +++ b/combo/public/templates/combo/page_template.html @@ -1,48 +1,48 @@ {% load static gadjo i18n %} - - - {% if page.description %} - - {% endif %} - Combo - {{ page.title }} - - - - {{ media }} - - -

    {{ page.title }}

    - -
    - - {% block messages %} - {% if messages %} -
    -
      - {% for message in messages %} - {{ message }} - {% endfor %} -
    -
    + + + {% if page.description %} + {% endif %} - {% endblock %} + Combo - {{ page.title }} + + + + {{ media }} + + +

    {{ page.title }}

    + +
    - {% block combo-content %} - {% trans "Content" as name %} - {% placeholder "content" name=name %} - {% endblock %} -
    - - + {% block messages %} + {% if messages %} +
    +
      + {% for message in messages %} + {{ message }} + {% endfor %} +
    +
    + {% endif %} + {% endblock %} + + {% block combo-content %} + {% trans "Content" as name %} + {% placeholder "content" name=name %} + {% endblock %} +
    + + diff --git a/combo/public/templates/combo/page_template_sidebar.html b/combo/public/templates/combo/page_template_sidebar.html index 0b06fac7..99d51284 100644 --- a/combo/public/templates/combo/page_template_sidebar.html +++ b/combo/public/templates/combo/page_template_sidebar.html @@ -2,12 +2,12 @@ {% load i18n %} {% block combo-content %} -
    -{% trans "Content" as name %} -{% placeholder "content" name=name %} -
    - +
    + {% trans "Content" as name %} + {% placeholder "content" name=name %} +
    + {% endblock %} diff --git a/combo/public/templates/combo/placeholder.html b/combo/public/templates/combo/placeholder.html index b08b08e8..8713aef6 100644 --- a/combo/public/templates/combo/placeholder.html +++ b/combo/public/templates/combo/placeholder.html @@ -1,25 +1,25 @@ {% load i18n %} {% if render %} -{% if outer_tag %}<{{outer_tag|default:"div"}} class="combo-placeholder combo-placeholder--{{ placeholder.key }}">{% endif %} -{% if placeholder_options.fx_grid_layout %}
    {% endif %} -{% if render_skeleton %} -{{ skeleton }} -{% endif %} -{% for cell in cells %} -
    {% render_cell cell %}
    -{% if cell.include_pagination %} -{% include "combo/pagination.html" with paginate_by=cell.limit data_cell_reference=cell.get_reference %} -{% endif %} -{% endfor %} -{% if placeholder_options.fx_grid_layout %}
    {% endif %} -{% if outer_tag %}{% endif %} + {% if outer_tag %}<{{outer_tag|default:"div"}} class="combo-placeholder combo-placeholder--{{ placeholder.key }}">{% endif %} + {% if placeholder_options.fx_grid_layout %}
    {% endif %} + {% if render_skeleton %} + {{ skeleton }} + {% endif %} + {% for cell in cells %} +
    {% render_cell cell %}
    + {% if cell.include_pagination %} + {% include "combo/pagination.html" with paginate_by=cell.limit data_cell_reference=cell.get_reference %} + {% endif %} + {% endfor %} + {% if placeholder_options.fx_grid_layout %}
    {% endif %} + {% if outer_tag %}{% endif %} {% endif %} diff --git a/combo/public/templates/combo/text-cell.html b/combo/public/templates/combo/text-cell.html index 846995ab..ba17e24b 100644 --- a/combo/public/templates/combo/text-cell.html +++ b/combo/public/templates/combo/text-cell.html @@ -1,4 +1,4 @@ {% block cell-content %} -{% include "combo/asset_picture_fragment.html" %} -{{text}} + {% include "combo/asset_picture_fragment.html" %} + {{text}} {% endblock %} diff --git a/tests/templates-1/combo/page_template_outer_tag_placeholder.html b/tests/templates-1/combo/page_template_outer_tag_placeholder.html index 01e6c55b..1c403f1f 100644 --- a/tests/templates-1/combo/page_template_outer_tag_placeholder.html +++ b/tests/templates-1/combo/page_template_outer_tag_placeholder.html @@ -2,12 +2,12 @@ {% load i18n %} {% block combo-content %} -
    -{% trans "Content" as name %} -{% placeholder "content" name=name outer_tag=True %} -
    - +
    + {% trans "Content" as name %} + {% placeholder "content" name=name outer_tag=True %} +
    + {% endblock %} diff --git a/tests/templates-1/combo/page_template_synchronous_placeholder.html b/tests/templates-1/combo/page_template_synchronous_placeholder.html index 005ee7dc..26e3f521 100644 --- a/tests/templates-1/combo/page_template_synchronous_placeholder.html +++ b/tests/templates-1/combo/page_template_synchronous_placeholder.html @@ -2,12 +2,12 @@ {% load i18n %} {% block combo-content %} -
    -{% trans "Content" as name %} -{% placeholder "content" name=name force_synchronous=True %} -
    - +
    + {% trans "Content" as name %} + {% placeholder "content" name=name force_synchronous=True %} +
    + {% endblock %} diff --git a/tests/wcs/test_card.py b/tests/wcs/test_card.py index 900ab230..757dead0 100644 --- a/tests/wcs/test_card.py +++ b/tests/wcs/test_card.py @@ -2284,7 +2284,7 @@ def test_card_cell_card_mode_render_identifier(mock_send, nocache, app): assert len(resp.context['cells']) == 1 extra_ctx = re.findall(r'data-extra-context="(.*)"', resp.text) cell_resp = app.get(cell_url + '?ctx=' + extra_ctx[0]) - assert cell_resp.text.replace('\n', '') == '' # empty-cell + assert cell_resp.text.replace('\n', '').strip() == '' # empty-cell cell.card_ids = '{{ cards|objects:"card_model_1"|last|get:"id" }}' cell.save() @@ -2347,7 +2347,7 @@ def test_card_cell_card_mode_render_identifier(mock_send, nocache, app): assert len(resp.context['cells']) == 1 extra_ctx = re.findall(r'data-extra-context="(.*)"', resp.text) cell_resp = app.get(cell_url + '?ctx=' + extra_ctx[0]) - assert cell_resp.text.replace('\n', '') == '' # empty-cell + assert cell_resp.text.replace('\n', '').strip() == '' # empty-cell @mock.patch('requests.Session.send', side_effect=mocked_requests_send) @@ -2381,7 +2381,7 @@ def test_card_cell_card_mode_render_identifier_from_related(mock_send, nocache, extra_ctx = re.findall(r'data-extra-context="(.*)"', resp.text) mock_send.reset_mock() cell_resp = app.get(cell2_url + '?ctx=' + extra_ctx[-1]) - assert cell_resp.text.replace('\n', '') == '' # empty-cell + assert cell_resp.text.replace('\n', '').strip() == '' # empty-cell assert len(mock_send.call_args_list) == len(urls) for j, url in enumerate(urls): assert url in mock_send.call_args_list[j][0][0].url