create: confirmation delete for generated history on teacher
This commit is contained in:
parent
ffb0519bfe
commit
f18a863774
|
|
@ -409,6 +409,8 @@
|
|||
<td>
|
||||
<button class="btn btn-sm btn-info text-white" data-toggle="modal"
|
||||
data-target="#detailGeneratedTextModal{{ $history_generated_text->id }}">Detail</button>
|
||||
<button class="btn btn-sm btn-danger" data-toggle="modal"
|
||||
data-target="#hapusGeneratedTextModal{{ $history_generated_text->id }}">Hapus</button>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
|
|
@ -420,6 +422,7 @@
|
|||
</table>
|
||||
@foreach ($history_generated_texts as $history_generated_text)
|
||||
@include('literacy.teacher.history_generated.modals.detail', ['history_generated_text' => $history_generated_text])
|
||||
@include('literacy.teacher.history_generated.modals.delete', ['history_generated_text' => $history_generated_text])
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
<div class="modal fade" id="hapusGeneratedTextModal{{ $history_generated_text->id }}" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<form action="{{ route('literacy_teacher_generate_questions_destroy', $history_generated_text->id) }}" method="POST">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-white text-black">
|
||||
<h5 class="modal-title">Konfirmasi Hapus</h5>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Apakah Anda yakin ingin menghapus histori ini?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Batal</button>
|
||||
<button type="submit" class="btn btn-danger">Hapus</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user