From 74eed6bac0da6a6eecf85e91ea92ed4f526ea4d6 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Tue, 5 May 2026 23:01:45 +0200 Subject: [PATCH] Rearange table --- go-form-plugin/go-form-plugin.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/go-form-plugin/go-form-plugin.php b/go-form-plugin/go-form-plugin.php index 098ee5b..8c11c22 100644 --- a/go-form-plugin/go-form-plugin.php +++ b/go-form-plugin/go-form-plugin.php @@ -88,18 +88,28 @@ function go_form_render_entries_table($entries, $show_delete = false) { return; } - $headers = ['First Name', 'Last Name', 'Country', 'Club', 'Rank', 'Email', 'EGD Number', 'Date Added']; - if ($show_delete) $headers[] = 'Action'; + $headers = ['First Name', 'Last Name', 'Country', 'Club', 'Rank', 'EGD Number']; + if ($show_delete) { + $headers[] = 'Email'; + $headers[] = 'Date Added'; + $headers[] = 'Action'; + } echo ''; foreach ($entries as $e) { - echo ' - - '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; if ($show_delete) { + echo ''; + echo ''; echo '
'.implode('', $headers).'
'.esc_html($e->first_name).''.esc_html($e->last_name).''.esc_html($e->country).''.esc_html($e->club).''.esc_html($ranks[$e->rank]).''.esc_html($e->email).''.esc_html($e->egd_number).''.esc_html($e->created_at).'
'.esc_html($e->first_name).''.esc_html($e->last_name).''.esc_html($e->country).''.esc_html($e->club).''.esc_html($ranks[$e->rank]).''.esc_html($e->egd_number).''.esc_html($e->email).''.esc_html($e->created_at).'
'.wp_nonce_field('go_form_delete_action', 'go_form_delete_nonce', true, false).'