annotate core/modules/language/templates/language-negotiation-configure-form.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 * Default theme implementation for a language negotiation configuration form.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - language_types: A list of language negotiation types. Each language type
Chris@0 8 * contains the following:
Chris@0 9 * - type: The machine name for the negotiation type.
Chris@0 10 * - title: The language negotiation type name.
Chris@0 11 * - description: A description for how the language negotiation type
Chris@0 12 * operates.
Chris@0 13 * - configurable: A radio element to toggle the table.
Chris@0 14 * - table: A draggable table for the language detection methods of this type.
Chris@0 15 * - children: Remaining form items for the group.
Chris@0 16 * - attributes: A list of HTML attributes for the wrapper element.
Chris@0 17 * - children: Remaining form items for all groups.
Chris@0 18 *
Chris@0 19 * @see template_preprocess_language_negotiation_configure_form()
Chris@0 20 *
Chris@0 21 * @ingroup themeable
Chris@0 22 */
Chris@0 23 #}
Chris@0 24 {% for language_type in language_types %}
Chris@0 25 {%
Chris@0 26 set language_classes = [
Chris@0 27 'js-form-item',
Chris@0 28 'form-item',
Chris@0 29 'table-language-group',
Chris@0 30 'table-' ~ language_type.type ~ '-wrapper',
Chris@0 31 ]
Chris@0 32 %}
Chris@0 33 <div{{ language_type.attributes.addClass(language_classes) }}>
Chris@0 34 <h2>{{ language_type.title }}</h2>
Chris@0 35 <div class="description">{{ language_type.description }}</div>
Chris@0 36 {{ language_type.configurable }}
Chris@0 37 {{ language_type.table }}
Chris@0 38 {{ language_type.children }}
Chris@0 39 </div>
Chris@0 40 {% endfor %}
Chris@0 41 {{ children }}