Skip to content

Commit

Permalink
finishing view & history
Browse files Browse the repository at this point in the history
  • Loading branch information
ranggaadithia committed Dec 28, 2023
1 parent 85eee34 commit c058d85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions resources/views/home/history.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class="text-left w-full bg-transparent px-4 py-2 text-sm font-normal text-neutra
@csrf
@method('delete')
<button type="submit" class="px-4 py-2 bg-red-500 font-semibold text-white text-sm rounded-md"
onclick="return confirm('Apakah anda yakin ingin membatalkan peminjaman ini?')"
onclick="confirm('Apakah anda yakin ingin membatalkan peminjaman ini?')"
>Batalkan Peminjam</button></form>
</form>

Expand Down Expand Up @@ -136,8 +136,7 @@ class="text-left w-full bg-transparent px-4 py-2 text-sm font-normal text-neutra
<script>
// Get all elements with the id starting with 'cancelBtn'
const cancelBtns = document.querySelectorAll('#cancelBtn');
const deleteFormId = cancelBtns[0].getAttribute('form');
console.log(deleteFormId);
// Add a click event listener to each cancel button
cancelBtns.forEach(function (cancelBtn) {
Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class="fixed top-0 z-50 flex-no-wrap flex w-full items-center justify-between bg
</div>
<div class="text-xl flex items-center justify-between text-center md:w-80">
<button class="hover:bg-gray-200 px-1 rounded-full transition-all ease-in-out duration-300 md:order-1" wire:click="prevWeek"><i class="bi bi-chevron-left text-md md:text-2xl"></i></button>
<h3 class="md:mx-5 mx-0 ml-2 md:ml-0 hidden md:block font-semibold text-2xl order-2">
<h3 class="mx-0 ml-2 md:ml-0 hidden md:block font-semibold text-2xl order-2">
{{ $startDate->format('F Y') }}
</h3>
<h3 class="md:mx-5 mx-0 ml-2 md:ml-0 block md:hidden font-semibold text-2xl order-2">
<h3 class="mx-0 ml-2 md:ml-0 block md:hidden font-semibold text-2xl order-2">
{{ $startDate->format('M Y') }}
</h3>
<button class="hover:bg-gray-200 px-1 rounded-full transition-all ease-in-out duration-300 order-3 ml-1 md:ml-0" wire:click="nextWeek"><i class="bi bi-chevron-right text-md md:text-2xl"></i></button>
Expand Down

0 comments on commit c058d85

Please sign in to comment.