camaleon-8.x-1.x-dev/templates/content-edit/node-add-list.html.twig
templates/content-edit/node-add-list.html.twig
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | {# /** * @file * Theme override to list node types available for adding content. * * This list is displayed on the Add content admin page. * * Available variables: * - types: A list of content types, each with the following properties: * - add_link: Link to create a piece of content of this type. * - description: Description of this type of content. * * @see template_preprocess_node_add_list() */ #} {% if types is not empty %} <dl class = "node-type-list" > {% for type in types %} <dt>{{ type.add_link }}</dt> <dd>{{ type.description }}</dd> {% endfor %} </dl> {% else %} <p> {% set create_content = path( 'node.type_add' ) %} {% trans %} You have not created any content types yet. Go to the <a href= "{{ create_content }}" >content type creation page</a> to add a new content type. {% endtrans %} </p> {% endif %} |