fixes
This commit is contained in:
@@ -39,6 +39,13 @@
|
||||
</svg>
|
||||
Leaderboard
|
||||
</a>
|
||||
<button id="newRegistrationBtn"
|
||||
class="flex items-center gap-2 bg-indigo-600 hover:bg-indigo-700 text-white text-sm font-medium px-4 py-2 rounded-lg transition-colors shadow-sm">
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/>
|
||||
</svg>
|
||||
New Registration
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -248,6 +248,9 @@
|
||||
<p id="panelEmail" class="text-xs font-medium text-slate-600 truncate">—</p>
|
||||
</div>
|
||||
</div>
|
||||
{{-- Hidden elements required by shared JS --}}
|
||||
<span id="panelSessions" class="hidden"></span>
|
||||
<span id="panelCreated" class="hidden"></span>
|
||||
</div>
|
||||
|
||||
<!-- Scrollable content -->
|
||||
@@ -384,7 +387,7 @@ function openDetailPanel(row) {
|
||||
});
|
||||
|
||||
// Load session history
|
||||
$.get('/registrations/' + selectedRegId + '/history', function (r) {
|
||||
$.get('{{ route("registrations.history", ":id") }}'.replace(':id', selectedRegId), function (r) {
|
||||
renderHistory(r.sessions || []);
|
||||
}).fail(function () {
|
||||
document.getElementById('panelHistory').innerHTML = '<p class="text-xs text-slate-400 italic">No sessions found.</p>';
|
||||
|
||||
Reference in New Issue
Block a user