feat: Reset-Button für Kinder-Konten im Admin-Bereich
This commit is contained in:
@@ -23,9 +23,15 @@
|
||||
<td class="px-4 py-3 text-slate-500">{{ $u->email }}</td>
|
||||
<td class="px-4 py-3 text-right font-bold text-amber-600">{{ $u->points }}</td>
|
||||
<td class="px-4 py-3 text-right text-slate-500">{{ $u->attempts_count }}</td>
|
||||
<td class="px-4 py-3 text-right">
|
||||
<td class="px-4 py-3 text-right whitespace-nowrap">
|
||||
<a href="{{ route('admin.users.edit',$u) }}" class="text-violet-600 hover:underline mr-3">Bearbeiten</a>
|
||||
<form method="POST" action="{{ route('admin.users.destroy',$u) }}" class="inline" onsubmit="return confirm('Wirklich löschen?')">
|
||||
<form method="POST" action="{{ route('admin.users.reset',$u) }}" class="inline"
|
||||
onsubmit="return confirm('Punktestand und Verlauf von {{ $u->name }} wirklich zurücksetzen?')">
|
||||
@csrf
|
||||
<button class="text-orange-500 hover:underline mr-3">Zurücksetzen</button>
|
||||
</form>
|
||||
<form method="POST" action="{{ route('admin.users.destroy',$u) }}" class="inline"
|
||||
onsubmit="return confirm('Konto von {{ $u->name }} wirklich löschen?')">
|
||||
@csrf @method('DELETE')
|
||||
<button class="text-red-500 hover:underline">Löschen</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user