jebin2 commited on
Commit
ea6d298
·
1 Parent(s): b51ac5b
Files changed (1) hide show
  1. templates/index.html +4 -2
templates/index.html CHANGED
@@ -471,13 +471,14 @@
471
  <th>Amount</th>
472
  <th>Status</th>
473
  <th>Verified By</th>
 
474
  <th>Created At</th>
475
  <th>Paid At</th>
476
  </tr>
477
  </thead>
478
  <tbody id="paymentsBody">
479
  <tr>
480
- <td colspan="13">
481
  <div class="loading">
482
  <div class="spinner"></div>Loading...
483
  </div>
@@ -700,7 +701,7 @@
700
  function renderPaymentsTable(items) {
701
  const tbody = document.getElementById('paymentsBody');
702
  if (items.length === 0) {
703
- tbody.innerHTML = '<tr><td colspan="13"><div class="empty-state">No payment transactions found</div></td></tr>';
704
  return;
705
  }
706
 
@@ -727,6 +728,7 @@
727
  <td>₹${item.amount_rupees}</td>
728
  <td><span class="status-badge status-${item.status === 'paid' ? 'success' : item.status === 'failed' ? 'failed' : 'queued'}">${item.status}</span></td>
729
  <td>${getVerifiedByBadge(item.verified_by)}</td>
 
730
  <td class="timestamp">${item.created_at ? new Date(item.created_at).toLocaleString() : '-'}</td>
731
  <td class="timestamp">${item.paid_at ? new Date(item.paid_at).toLocaleString() : '-'}</td>
732
  </tr>
 
471
  <th>Amount</th>
472
  <th>Status</th>
473
  <th>Verified By</th>
474
+ <th>Error Reason</th>
475
  <th>Created At</th>
476
  <th>Paid At</th>
477
  </tr>
478
  </thead>
479
  <tbody id="paymentsBody">
480
  <tr>
481
+ <td colspan="14">
482
  <div class="loading">
483
  <div class="spinner"></div>Loading...
484
  </div>
 
701
  function renderPaymentsTable(items) {
702
  const tbody = document.getElementById('paymentsBody');
703
  if (items.length === 0) {
704
+ tbody.innerHTML = '<tr><td colspan="14"><div class="empty-state">No payment transactions found</div></td></tr>';
705
  return;
706
  }
707
 
 
728
  <td>₹${item.amount_rupees}</td>
729
  <td><span class="status-badge status-${item.status === 'paid' ? 'success' : item.status === 'failed' ? 'failed' : 'queued'}">${item.status}</span></td>
730
  <td>${getVerifiedByBadge(item.verified_by)}</td>
731
+ <td class="truncate" title="${item.error_message || ''}">${item.error_message || '-'}</td>
732
  <td class="timestamp">${item.created_at ? new Date(item.created_at).toLocaleString() : '-'}</td>
733
  <td class="timestamp">${item.paid_at ? new Date(item.paid_at).toLocaleString() : '-'}</td>
734
  </tr>