Chris@0
|
1 {#
|
Chris@0
|
2 /**
|
Chris@0
|
3 * @file
|
Chris@0
|
4 * Theme override for the modules uninstall page.
|
Chris@0
|
5 *
|
Chris@0
|
6 * Available variables:
|
Chris@0
|
7 * - form: The modules uninstall form.
|
Chris@0
|
8 * - modules: Contains multiple module instances. Each module contains:
|
Chris@0
|
9 * - attributes: Attributes on the row.
|
Chris@0
|
10 * - module_name: The name of the module.
|
Chris@0
|
11 * - checkbox: A checkbox for uninstalling the module.
|
Chris@0
|
12 * - checkbox_id: A unique identifier for interacting with the checkbox
|
Chris@0
|
13 * element.
|
Chris@0
|
14 * - name: The human-readable name of the module.
|
Chris@0
|
15 * - description: The description of the module.
|
Chris@0
|
16 * - disabled_reasons: (optional) A list of reasons why this module cannot be
|
Chris@0
|
17 * uninstalled.
|
Chris@0
|
18 *
|
Chris@0
|
19 * @see template_preprocess_system_modules_uninstall()
|
Chris@0
|
20 */
|
Chris@0
|
21 #}
|
Chris@0
|
22 {{ form.filters }}
|
Chris@0
|
23
|
Chris@0
|
24 <table class="responsive-enabled" data-striping="1">
|
Chris@0
|
25 <thead>
|
Chris@0
|
26 <tr>
|
Chris@0
|
27 <th>{{ 'Uninstall'|t }}</th>
|
Chris@0
|
28 <th>{{ 'Name'|t }}</th>
|
Chris@0
|
29 <th>{{ 'Description'|t }}</th>
|
Chris@0
|
30 </tr>
|
Chris@0
|
31 </thead>
|
Chris@0
|
32 <tbody>
|
Chris@0
|
33 {% for module in modules %}
|
Chris@0
|
34 {% set zebra = cycle(['odd', 'even'], loop.index0) -%}
|
Chris@0
|
35 <tr{{ module.attributes.addClass(zebra) }}>
|
Chris@0
|
36 <td align="center">
|
Chris@0
|
37 {{- module.checkbox -}}
|
Chris@0
|
38 </td>
|
Chris@0
|
39 <td>
|
Chris@0
|
40 <label for="{{ module.checkbox_id }}" class="module-name table-filter-text-source">{{ module.name }}</label>
|
Chris@0
|
41 </td>
|
Chris@0
|
42 <td class="description">
|
Chris@0
|
43 <span class="text module-description">{{ module.description }}</span>
|
Chris@0
|
44 {% if module.reasons_count > 0 %}
|
Chris@0
|
45 <div class="admin-requirements">
|
Chris@0
|
46 {%- trans -%}
|
Chris@0
|
47 The following reason prevents {{ module.module_name }} from being uninstalled:
|
Chris@0
|
48 {%- plural module.reasons_count -%}
|
Chris@0
|
49 The following reasons prevent {{ module.module_name }} from being uninstalled:
|
Chris@0
|
50 {%- endtrans %}
|
Chris@0
|
51 <div class="item-list">
|
Chris@0
|
52 <ul>
|
Chris@0
|
53 {%- for reason in module.validation_reasons -%}
|
Chris@0
|
54 <li>{{ reason }}</li>
|
Chris@0
|
55 {%- endfor -%}
|
Chris@0
|
56 {%- if module.required_by -%}
|
Chris@0
|
57 <li>{{ 'Required by: @module-list'|t({'@module-list': module.required_by|safe_join(', ') }) }}</li>
|
Chris@0
|
58 {%- endif -%}
|
Chris@0
|
59 </ul>
|
Chris@0
|
60 </div>
|
Chris@0
|
61 </div>
|
Chris@0
|
62 {% endif %}
|
Chris@0
|
63 </td>
|
Chris@0
|
64 </tr>
|
Chris@0
|
65 {% else %}
|
Chris@0
|
66 <tr class="odd">
|
Chris@0
|
67 <td colspan="3" class="empty message">{{ 'No modules are available to uninstall.'|t }}</td>
|
Chris@0
|
68 </tr>
|
Chris@0
|
69 {% endfor %}
|
Chris@0
|
70 </tbody>
|
Chris@0
|
71 </table>
|
Chris@0
|
72
|
Chris@0
|
73 {{ form|without('filters', 'modules', 'uninstall') }}
|