{# /** * @file * Theme override for the modules uninstall page. * * Available variables: * - form: The modules uninstall form. * - modules: Contains multiple module instances. Each module contains: * - attributes: Attributes on the row. * - module_name: The name of the module. * - checkbox: A checkbox for uninstalling the module. * - checkbox_id: A unique identifier for interacting with the checkbox * element. * - name: The human-readable name of the module. * - description: The description of the module. * - disabled_reasons: (optional) A list of reasons why this module cannot be * uninstalled. * * @see template_preprocess_system_modules_uninstall() */ #} {{ form.filters }} {% for module in modules %} {% set zebra = cycle(['odd', 'even'], loop.index0) -%} {% else %} {% endfor %}
{{ 'Uninstall'|t }} {{ 'Name'|t }} {{ 'Description'|t }}
{{- module.checkbox -}} {% if module.reasons_count <= 0 %}
{{module.description}}
{% endif %} {% if module.reasons_count > 0 %}
  • {{ module.description }}
    {%- trans -%} The following reason prevents {{ module.module_name }} from being uninstalled: {%- plural module.reasons_count -%} The following reasons prevent {{ module.module_name }} from being uninstalled: {%- endtrans %}
      {%- for reason in module.validation_reasons -%}
    • warning {{ reason }}
    • {%- endfor -%} {%- if module.required_by -%}
    • {{ 'Required by: '|t}} {% for keys in module.required_by %} {{keys}} {% endfor %}
    • {%- endif -%}
    {% endif %}
{{ 'No modules are available to uninstall.'|t }}
{{ form|without('filters', 'modules', 'uninstall') }}