Chris@0
|
1 {#
|
Chris@0
|
2 /**
|
Chris@0
|
3 * @file
|
Chris@0
|
4 * Default theme implementation 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 * @ingroup themeable
|
Chris@0
|
22 */
|
Chris@0
|
23 #}
|
Chris@0
|
24 {{ form.filters }}
|
Chris@0
|
25
|
Chris@14
|
26 <table class="responsive-enabled">
|
Chris@0
|
27 <thead>
|
Chris@0
|
28 <tr>
|
Chris@0
|
29 <th>{{ 'Uninstall'|t }}</th>
|
Chris@0
|
30 <th>{{ 'Name'|t }}</th>
|
Chris@0
|
31 <th>{{ 'Description'|t }}</th>
|
Chris@0
|
32 </tr>
|
Chris@0
|
33 </thead>
|
Chris@0
|
34 <tbody>
|
Chris@0
|
35 {% for module in modules %}
|
Chris@0
|
36 {% set zebra = cycle(['odd', 'even'], loop.index0) -%}
|
Chris@0
|
37 <tr{{ module.attributes.addClass(zebra) }}>
|
Chris@0
|
38 <td align="center">
|
Chris@0
|
39 {{- module.checkbox -}}
|
Chris@0
|
40 </td>
|
Chris@0
|
41 <td>
|
Chris@0
|
42 <label for="{{ module.checkbox_id }}" class="module-name table-filter-text-source">{{ module.name }}</label>
|
Chris@0
|
43 </td>
|
Chris@0
|
44 <td class="description">
|
Chris@0
|
45 <span class="text module-description">{{ module.description }}</span>
|
Chris@0
|
46 {% if module.reasons_count > 0 %}
|
Chris@0
|
47 <div class="admin-requirements">
|
Chris@0
|
48 {%- trans -%}
|
Chris@0
|
49 The following reason prevents {{ module.module_name }} from being uninstalled:
|
Chris@0
|
50 {%- plural module.reasons_count -%}
|
Chris@0
|
51 The following reasons prevent {{ module.module_name }} from being uninstalled:
|
Chris@0
|
52 {%- endtrans %}
|
Chris@0
|
53 <div class="item-list">
|
Chris@0
|
54 <ul>
|
Chris@0
|
55 {%- for reason in module.validation_reasons -%}
|
Chris@0
|
56 <li>{{ reason }}</li>
|
Chris@0
|
57 {%- endfor -%}
|
Chris@0
|
58 {%- if module.required_by -%}
|
Chris@0
|
59 <li>{{ 'Required by: @module-list'|t({'@module-list': module.required_by|safe_join(', ') }) }}</li>
|
Chris@0
|
60 {%- endif -%}
|
Chris@0
|
61 </ul>
|
Chris@0
|
62 </div>
|
Chris@0
|
63 </div>
|
Chris@0
|
64 {% endif %}
|
Chris@0
|
65 </td>
|
Chris@0
|
66 </tr>
|
Chris@0
|
67 {% else %}
|
Chris@0
|
68 <tr class="odd">
|
Chris@0
|
69 <td colspan="3" class="empty message">{{ 'No modules are available to uninstall.'|t }}</td>
|
Chris@0
|
70 </tr>
|
Chris@0
|
71 {% endfor %}
|
Chris@0
|
72 </tbody>
|
Chris@0
|
73 </table>
|
Chris@0
|
74
|
Chris@0
|
75 {{ form|without('filters', 'modules', 'uninstall') }}
|