Skip to content

Commit

Permalink
fixed: buttons have a discernible text
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Jul 18, 2023
1 parent 12080d3 commit 8c2fdab
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
// make form footer
$footer = elgg_view_field([
'#type' => 'submit',
'value' => elgg_echo('save'),
'text' => elgg_echo('save'),
]);
elgg_set_form_footer($footer);
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

$footer = elgg_view_field([
'#type' => 'submit',
'value' => elgg_echo('save'),
'text' => elgg_echo('save'),
]);
elgg_set_form_footer($footer);
2 changes: 1 addition & 1 deletion views/default/forms/group_tools/admin/decline.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// form footer
$footer = elgg_view_field([
'#type' => 'submit',
'value' => elgg_echo('decline'),
'text' => elgg_echo('decline'),
'class' => 'elgg-button-delete',
'data-confirm' => elgg_echo('group_tools:group:admin_approve:decline:confirm'),
]);
Expand Down
2 changes: 1 addition & 1 deletion views/default/forms/group_tools/group_tool_presets.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@
// save button
$footer = elgg_view_field([
'#type' => 'submit',
'value' => elgg_echo('save'),
'text' => elgg_echo('save'),
]);
elgg_set_form_footer($footer);
2 changes: 1 addition & 1 deletion views/default/forms/group_tools/join_motivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

$footer = elgg_view_field([
'#type' => 'submit',
'value' => elgg_echo('groups:joinrequest'),
'text' => elgg_echo('groups:joinrequest'),
]);
elgg_set_form_footer($footer);
4 changes: 2 additions & 2 deletions views/default/forms/group_tools/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
[
'#type' => 'button',
'id' => 'group-tools-mail-clear',
'value' => elgg_echo('group_tools:clear_selection'),
'text' => elgg_echo('group_tools:clear_selection'),
'class' => 'elgg-button-action',
],
]
Expand Down Expand Up @@ -72,6 +72,6 @@
// footer
$footer = elgg_view_field([
'#type' => 'submit',
'value' => elgg_echo('send'),
'text' => elgg_echo('send'),
]);
elgg_set_form_footer($footer);
2 changes: 1 addition & 1 deletion views/default/forms/group_tools/members_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[
'#type' => 'submit',
'icon' => 'search',
'value' => elgg_echo('search'),
'text' => elgg_echo('search'),
]
],
]);
2 changes: 1 addition & 1 deletion views/default/forms/group_tools/related_groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
[
'#type' => 'submit',
'value' => elgg_echo('add'),
'text' => elgg_echo('add'),
],
[
'#type' => 'hidden',
Expand Down
6 changes: 3 additions & 3 deletions views/default/forms/groups/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
'#type' => 'button',
'id' => 'elgg-groups-edit-footer-navigate-next',
'icon_alt' => 'chevron-right',
'value' => elgg_echo('next'),
'text' => elgg_echo('next'),
'class' => 'elgg-button-action',
],
],
Expand All @@ -113,12 +113,12 @@
if ($admin_approve && (!$entity instanceof \ElggGroup || $entity->access_id === ACCESS_PRIVATE)) {
$buttons[] = [
'#type' => 'submit',
'value' => elgg_echo('group_tools:group:edit:save:approve'),
'text' => elgg_echo('group_tools:group:edit:save:approve'),
];
} else {
$buttons[] = [
'#type' => 'submit',
'value' => elgg_echo('save'),
'text' => elgg_echo('save'),
];
}

Expand Down
2 changes: 1 addition & 1 deletion views/default/forms/groups/email_invitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
// footer / buttons
$footer = elgg_view_field([
'#type' => 'submit',
'value' => elgg_echo('submit'),
'text' => elgg_echo('submit'),
]);
elgg_set_form_footer($footer);
4 changes: 2 additions & 2 deletions views/default/forms/groups/killrequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
'fields' => [
[
'#type' => 'submit',
'value' => elgg_echo('decline'),
'text' => elgg_echo('decline'),
],
[
'#type' => 'button',
'value' => elgg_echo('cancel'),
'text' => elgg_echo('cancel'),
'onclick' => '$.colorbox.close();',
],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function(QueryBuilder $qb, $main_alias) use ($method) {

$buttons[] = [
'#type' => 'submit',
'value' => elgg_echo('group_tools:notifications:enable'),
'text' => elgg_echo('group_tools:notifications:enable'),
'title' => elgg_echo('group_tools:notifications:disclaimer'),
'confirm' => true,
'formaction' => elgg_generate_action_url('group_tools/admin/notifications', [], false),
Expand Down
2 changes: 1 addition & 1 deletion views/default/group_tools/invite/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
[
'#type' => 'button',
'value' => elgg_echo('add'),
'text' => elgg_echo('add'),
'class' => [
'elgg-button-action',
],
Expand Down

0 comments on commit 8c2fdab

Please sign in to comment.