Mercurial > hg > isophonics-drupal-site
annotate core/themes/seven/templates/entity-add-list.html.twig @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 {# |
Chris@0 | 2 /** |
Chris@0 | 3 * @file |
Chris@0 | 4 * Theme override to to present a list of available bundles. |
Chris@0 | 5 * |
Chris@0 | 6 * Available variables: |
Chris@0 | 7 * - bundles: A list of bundles, each with the following properties: |
Chris@0 | 8 * - label: Bundle label. |
Chris@0 | 9 * - description: Bundle description. |
Chris@0 | 10 * - add_link: Link to create an entity of this bundle. |
Chris@0 | 11 * - add_bundle_message: The message shown when there are no bundles. Only |
Chris@0 | 12 * available if the entity type uses bundle entities. |
Chris@0 | 13 * |
Chris@0 | 14 * @see template_preprocess_entity_add_list() |
Chris@0 | 15 */ |
Chris@0 | 16 #} |
Chris@0 | 17 {% if bundles is not empty %} |
Chris@0 | 18 <ul class="admin-list"> |
Chris@0 | 19 {% for bundle in bundles %} |
Chris@0 | 20 <li class="clearfix"><a href="{{ bundle.add_link.url }}"><span class="label">{{ bundle.label }}</span><div class="description">{{ bundle.description }}</div></a></li> |
Chris@0 | 21 {% endfor %} |
Chris@0 | 22 </ul> |
Chris@0 | 23 {% elseif add_bundle_message is not empty %} |
Chris@0 | 24 <p> |
Chris@0 | 25 {{ add_bundle_message }} |
Chris@0 | 26 </p> |
Chris@0 | 27 {% endif %} |