')
diff --git a/wcs/qommon/static/js/qommon.forms.js b/wcs/qommon/static/js/qommon.forms.js
index f62ffe99a..f3f88631b 100644
--- a/wcs/qommon/static/js/qommon.forms.js
+++ b/wcs/qommon/static/js/qommon.forms.js
@@ -124,10 +124,22 @@ Responsive_table_widget.prototype.init = function () {
};
$(function() {
- $('.section.foldable > h2').click(function() {
- if (document.body.dataset.gadjo !== 'true') {
- $(this).parent().toggleClass('folded');
+ $('.section.foldable > h2 [role=button]').each(function() {
+ $(this).attr('tabindex', '0');
+ });
+ $('.section.foldable > h2 [role=button]').on('keydown', function(ev) {
+ if (ev.keyCode == 13 || ev.keyCode == 32) { // enter || space
+ $(this).trigger('click');
+ return false;
+ }
+ });
+ $('.section.foldable > h2').off('click').click(function() {
+ var folded = $(this).parent().hasClass('folded');
+ var $button = $(this).find('[role=button]').first();
+ if ($button.length) {
+ $button[0].setAttribute('aria-expanded', `${folded}`);
}
+ $(this).parent().toggleClass('folded');
$(this).parent().find('.qommon-map').trigger('qommon:invalidate');
});
diff --git a/wcs/templates/wcs/formdata_history.html b/wcs/templates/wcs/formdata_history.html
index 9a5e2ea2d..31de53fc4 100644
--- a/wcs/templates/wcs/formdata_history.html
+++ b/wcs/templates/wcs/formdata_history.html
@@ -1,9 +1,10 @@
{% load i18n %}
{% block log-section-title %}
-
{% trans "Log" %}
+
{% trans "Log" %}
{% endblock %}
-
+
{% for evolution in formdata.get_visible_evolution_parts %}
{% with status=evolution.get_status display_parts=evolution.display_parts %}
diff --git a/wcs/templates/wcs/formdata_summary.html b/wcs/templates/wcs/formdata_summary.html
index 23c8757c5..1ef90f532 100644
--- a/wcs/templates/wcs/formdata_summary.html
+++ b/wcs/templates/wcs/formdata_summary.html
@@ -1,11 +1,12 @@
{% load i18n %}
-
{% trans "Summary" %}
+ {% trans "Summary" %}
{% if not publisher.get_request.is_in_backoffice %}
({% trans "display form details" %})
{% endif %}
-