annotate core/themes/stable/templates/admin/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 * Theme override 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 operates.
Chris@0 12 * - configurable: A radio element to toggle the table.
Chris@0 13 * - table: A draggable table for the language detection methods of this type.
Chris@0 14 * - children: Remaining form items for the group.
Chris@0 15 * - attributes: A list of HTML attributes for the wrapper element.
Chris@0 16 * - children: Remaining form items for all groups.
Chris@0 17 *
Chris@0 18 * @see template_preprocess_language_negotiation_configure_form()
Chris@0 19 */
Chris@0 20 #}
Chris@0 21 {% for language_type in language_types %}
Chris@0 22 {%
Chris@0 23 set language_classes = [
Chris@0 24 'js-form-item',
Chris@0 25 'form-item',
Chris@0 26 'table-language-group',
Chris@0 27 'table-' ~ language_type.type ~ '-wrapper',
Chris@0 28 ]
Chris@0 29 %}
Chris@0 30 <div{{ language_type.attributes.addClass(language_classes) }}>
Chris@0 31 <h2>{{ language_type.title }}</h2>
Chris@0 32 <div class="description">{{ language_type.description }}</div>
Chris@0 33 {{ language_type.configurable }}
Chris@0 34 {{ language_type.table }}
Chris@0 35 {{ language_type.children }}
Chris@0 36 </div>
Chris@0 37 {% endfor %}
Chris@0 38 {{ children }}