|
14 | 14 | } |
15 | 15 |
|
16 | 16 | $buttons = []; |
| 17 | +$content = ''; |
17 | 18 |
|
18 | 19 | if (!(bool) $group->is_concept) { |
19 | 20 | // awaiting approval |
|
27 | 28 | ]); |
28 | 29 | $buttons[] = elgg_view('output/url', [ |
29 | 30 | 'text' => elgg_echo('decline'), |
30 | | - 'href' => elgg_generate_action_url('group_tools/admin/decline', [ |
31 | | - 'guid' => $group->guid, |
32 | | - ]), |
33 | | - 'confirm' => elgg_echo('group_tools:group:admin_approve:decline:confirm'), |
34 | | - 'class' => 'elgg-button elgg-button-delete', |
| 31 | + 'href' => "#group-tools-admin-approve-decline-{$group->guid}", |
| 32 | + 'class' => [ |
| 33 | + 'elgg-button', |
| 34 | + 'elgg-button-delete', |
| 35 | + 'elgg-lightbox-inline', |
| 36 | + ], |
| 37 | + ]); |
| 38 | + |
| 39 | + $form = elgg_view_form('group_tools/admin/decline', [], [ |
| 40 | + 'entity' => $group, |
| 41 | + ]); |
| 42 | + $module = elgg_view_module('info', elgg_echo('group_tools:group:admin_approve:decline:title'), $form, [ |
| 43 | + 'id' => "group-tools-admin-approve-decline-{$group->guid}", |
35 | 44 | ]); |
| 45 | + $content .= elgg_format_element('div', ['class' => 'hidden'], $module); |
36 | 46 |
|
37 | 47 | $count = $group->getAnnotations([ |
38 | 48 | 'count' => true, |
@@ -72,7 +82,7 @@ function(QueryBuilder $qb, $main_alias) { |
72 | 82 | 'access' => false, |
73 | 83 | 'metadata' => false, |
74 | 84 | 'image_block_vars' => [ |
75 | | - 'image_alt' => implode('', $buttons), |
| 85 | + 'image_alt' => implode('', $buttons) . $content, |
76 | 86 | ], |
77 | 87 | ]; |
78 | 88 |
|
|
0 commit comments