From b7e7de6e5e39986fc70e5a80249658a4539eda69 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Sun, 9 Feb 2025 17:39:10 -0500 Subject: [PATCH] Improve accept/decline buttons in invitation acceptor (CFM-422) --- .../InvitationAccepters/dispatch.inc | 20 +++++++++++++++---- app/resources/locales/en_US/operation.po | 3 +++ app/webroot/css/co-base.css | 15 +++++++++----- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/app/plugins/CoreEnroller/templates/InvitationAccepters/dispatch.inc b/app/plugins/CoreEnroller/templates/InvitationAccepters/dispatch.inc index 9c8b2ad5..c3f70458 100644 --- a/app/plugins/CoreEnroller/templates/InvitationAccepters/dispatch.inc +++ b/app/plugins/CoreEnroller/templates/InvitationAccepters/dispatch.inc @@ -39,16 +39,28 @@ if($vv_action == 'dispatch') { print $this->element('form/listItem', [ 'arguments' => [ 'fieldName' => 'accepted', - 'fieldLabel' => "Accept this invitation?", + 'fieldLabel' => __d('operation','accept.invitation'), 'fieldOptions' => [ 'type' => 'radio', 'options' => [ - ['value' => '1', 'text' => 'Accept'], - ['value' => '0', 'text' => 'Decline'], + ['value' => '1', 'text' => __d('operation','accept')], + ['value' => '0', 'text' => __d('operation','decline')], ], 'empty' => false, 'required' => true, - 'class' => 'crazything' + 'class' => 'form-check-input' ] ]]); +?> + +