diff --git a/core/themes/stable/templates/content-edit/entity-add-list.html.twig b/core/themes/stable/templates/content-edit/entity-add-list.html.twig new file mode 100644 index 0000000..4a391bd --- /dev/null +++ b/core/themes/stable/templates/content-edit/entity-add-list.html.twig @@ -0,0 +1,29 @@ +{# +/** + * @file + * Theme override to to present a list of available bundles. + * + * Available variables: + * - create_bundle_url: The url to the bundle creation page. + * - bundle_type_label: The lowercase label of the bundle entity type. + * - bundles: A list of bundles, each with the following properties: + * - add_link: link to create an entity of this bundle. + * - description: Bundle description. + * + * @see template_preprocess_entity_add_list() + */ +#} +{% if bundles is not empty %} +
+ {% for bundle in bundles %} +
{{ bundle.add_link }}
+
{{ bundle.description }}
+ {% endfor %} +
+{% else %} +

+ {% trans %} + Go to the {{ bundle_type_label }} creation page to add a new {{ bundle_type_label }}. + {% endtrans %} +

+{% endif %}