Add rating

This commit is contained in:
2026-05-06 21:27:34 +02:00
parent 9e8b404f91
commit 67c5c98fb4
4 changed files with 18 additions and 10 deletions

View File

@@ -61,7 +61,7 @@
<?php echo wp_nonce_field('go_form_action', 'go_form_nonce', true, false); ?>
<input type="hidden" name="action" value="go_form_handle_submission">
<input type="hidden" name="form_id" value="<?php echo esc_attr($form_id); ?>">
<input type="hidden" name="rating" id="rating" value="-1000">
<div class="go-form-grid">
<div>
@@ -184,6 +184,7 @@
document.getElementById('club').value = player.Club || '';
document.getElementById('rank').value = player.Grade_n || 0;
document.getElementById('egd_number').value = player.Pin_Player || '';
document.getElementById('rating').value = player.Gor || 0;
closePopup();
}

View File

@@ -8,6 +8,7 @@
<th>Rank</th>
<th>EGD Number</th>
<?php if ($show_admin): ?>
<th>Rating</th>
<th>Email</th>
<th>Date Added</th>
<th>Action</th>
@@ -29,6 +30,7 @@
<?php if ($show_admin): ?>
<td> <?= esc_html($e->rating) ?> </td>
<td> <?= esc_html($e->email) ?> </td>
<td> <?= esc_html($e->created_at) ?> </td>
<td>