diff --git a/app/templates/views/templates/_template_list.html b/app/templates/views/templates/_template_list.html index 6f161c4a7..c80a5c5a2 100644 --- a/app/templates/views/templates/_template_list.html +++ b/app/templates/views/templates/_template_list.html @@ -38,22 +38,28 @@ {% for item in template_list %} {% set item_link_content %} - {% if item.is_folder %} - - {{- format_item_name(item.name) -}} - - {% elif not item.ancestors %} - - - {%- if current_service.api_keys -%} - - {%- endif -%} - {{- format_item_name(item.name) -}} - - - {% endif %} + {% if item.is_folder %} + + {{- format_item_name(item.name) -}} + + {% elif not item.ancestors %} + + + {%- if current_service.api_keys -%} + + {%- endif -%} + {{- format_item_name(item.name) -}} + + + {% endif %} {% endset %} {% set label_content %} @@ -82,6 +88,8 @@ "id": "templates-or-folder-" ~ item.id, "classes": "template-list-item template-list-item-with-checkbox {}".format( "template-list-item-hidden-by-default" if item.ancestors else "template-list-item-without-ancestors"), + "attributes": { "role": "checkbox", "aria-describedby": item.id ~ "-item-hint" }, + "after": item_link_content ~ item_meta } %} {% set _ = checkboxes_data.append(checkbox_config) %} diff --git a/app/templates/views/templates/choose.html b/app/templates/views/templates/choose.html index e1e99f527..964ab10dc 100644 --- a/app/templates/views/templates/choose.html +++ b/app/templates/views/templates/choose.html @@ -33,7 +33,7 @@ {% else %} -
+
@@ -51,7 +51,7 @@
{% if current_user.has_permissions('manage_templates') and current_template_folder_id and user_has_template_folder_permission %} {% endif %}