From 7b8f85752a631b2b498037fcce33018d023d5e08 Mon Sep 17 00:00:00 2001 From: Ikhsan Satriadi Date: Mon, 8 Jul 2024 14:56:11 +0700 Subject: [PATCH] fix table overflow on mobile view --- app/Views/books/index.php | 116 ++++++++++++------------- app/Views/categories/index.php | 78 ++++++++--------- app/Views/fines/index.php | 132 ++++++++++++++-------------- app/Views/fines/return.php | 111 ++++++++++++------------ app/Views/loans/book.php | 150 ++++++++++++++++---------------- app/Views/loans/index.php | 141 +++++++++++++++--------------- app/Views/loans/member.php | 74 ++++++++-------- app/Views/loans/result.php | 111 ++++++++++++------------ app/Views/members/index.php | 94 ++++++++++---------- app/Views/racks/index.php | 90 +++++++++---------- app/Views/returns/index.php | 152 +++++++++++++++++---------------- app/Views/returns/loan.php | 134 +++++++++++++++-------------- app/Views/users/index.php | 116 ++++++++++++------------- 13 files changed, 764 insertions(+), 735 deletions(-) diff --git a/app/Views/books/index.php b/app/Views/books/index.php index b233dd9..7af5b75 100644 --- a/app/Views/books/index.php +++ b/app/Views/books/index.php @@ -47,65 +47,67 @@ - - - - - - - - - - - - - - - +
+
#SampulJudulKategoriRakJumlahAksi
+ - + + + + + + + - - - - - - - - - - - - - -
Tidak ada data#SampulJudulKategoriRakJumlahAksi
- "> -
- - <?= $book['title']; ?> -
-
-
- "> -

-

-
-
- " class="d-block btn btn-primary w-100 mb-2"> - - Edit - -
" method="post"> - - - -
-
+ + + + + + Tidak ada data + + + + + + + "> +
+ + <?= $book['title']; ?> +
+
+ + + "> +

+

+
+ + + + + + " class="d-block btn btn-primary w-100 mb-2"> + + Edit + +
" method="post"> + + + +
+ + + + + + links('books', 'my_pager'); ?> diff --git a/app/Views/categories/index.php b/app/Views/categories/index.php index 76793ab..19253d3 100644 --- a/app/Views/categories/index.php +++ b/app/Views/categories/index.php @@ -25,46 +25,48 @@ - - - - - - - - - - - - $category) : ?> +
+
#KategoriJumlah bukuAksi
+ - - - - + + + + - - -
- " class="text-primary-emphasis text-decoration-underline"> - - - -
- " class="btn btn-primary mb-2"> - - Edit - -
" method="post"> - - - -
-
-
#KategoriJumlah bukuAksi
+ + + + $category) : ?> + + + + " class="text-primary-emphasis text-decoration-underline"> + + + + + +
+ " class="btn btn-primary mb-2"> + + Edit + +
" method="post"> + + + +
+
+ + + + + + links('categories', 'my_pager'); ?> diff --git a/app/Views/fines/index.php b/app/Views/fines/index.php index 4f6ef73..2dcfcd7 100644 --- a/app/Views/fines/index.php +++ b/app/Views/fines/index.php @@ -59,74 +59,76 @@ - - - - - - - - - - - - - - - +
+
#Nama peminjamJudul bukuTgl pengembalianDenda dibayarJumlah dendaAksi
+ - + + + + + + + - - $fine) : - $loanReturnDate = Time::parse($fine['return_date'], locale: 'id'); - $loanDueDate = Time::parse($fine['due_date'], locale: 'id'); - ?> - - - - - - - - + + + + + + + + $fine) : + $loanReturnDate = Time::parse($fine['return_date'], locale: 'id'); + $loanDueDate = Time::parse($fine['due_date'], locale: 'id'); + ?> + + + - - - -
Tidak ada data#Nama peminjamJudul bukuTgl pengembalianDenda dibayarJumlah dendaAksi
- " class="text-decoration-underline"> -

- -

-
-
-

-

-
-

toLocalizedString('dd/MM/y'); ?>

-

difference($loanDueDate)->getDays()) . " Hari"; ?>

-
-
Rp
- = $fine['fine_amount']) : ?> - Lunas - -
-
Rp
-
- - " class="d-block btn btn-warning w-100 mb-2"> - Bayar +
Tidak ada data
+ " class="text-decoration-underline"> +

+ +

- - " class="d-block btn btn-primary w-100 mb-2"> - Detail - -
+ + +

+

+ + +

toLocalizedString('dd/MM/y'); ?>

+

difference($loanDueDate)->getDays()) . " Hari"; ?>

+ + +
Rp
+ = $fine['fine_amount']) : ?> + Lunas + + + +
Rp
+ + + + " class="d-block btn btn-warning w-100 mb-2"> + Bayar + + + " class="d-block btn btn-primary w-100 mb-2"> + Detail + + + + + + + links('fines', 'my_pager'); ?> diff --git a/app/Views/fines/return.php b/app/Views/fines/return.php index d86f55a..19f43a9 100644 --- a/app/Views/fines/return.php +++ b/app/Views/fines/return.php @@ -9,60 +9,63 @@

Hasil pencarian data pengembalian
- - - - - - - - - - - - - - - - $return) : ?> + +
+
#Nama peminjamJudul bukuJumlahTgl kembaliDenda dibayarJumlah dendaAksi
+ - - - - - - - - + + + + + + + + - - -
- - -

-

-
- toLocalizedString('dd/MM/y'); ?>
- toLocalizedString('HH:mm:ss'); ?> -
-
Rp
- = $return['fine_amount']) : ?> - Lunas - -
-
Rp
-
- = $return['fine_amount']) : ?> - - - " class="btn btn-primary mb-2"> - - Pilih - - - #Nama peminjamJudul bukuJumlahTgl kembaliDenda dibayarJumlah dendaAksi
+ + + + $return) : ?> + + + + + + +

+

+ + + + toLocalizedString('dd/MM/y'); ?>
+ toLocalizedString('HH:mm:ss'); ?> + + +
Rp
+ = $return['fine_amount']) : ?> + Lunas + + + +
Rp
+ + + = $return['fine_amount']) : ?> + + + " class="btn btn-primary mb-2"> + + Pilih + + + + + + + + \ No newline at end of file diff --git a/app/Views/loans/book.php b/app/Views/loans/book.php index 92ac79d..f6ce9b4 100644 --- a/app/Views/loans/book.php +++ b/app/Views/loans/book.php @@ -3,85 +3,87 @@

Hasil pencarian buku
- - - - - - - - - - - - - - - - - - - - + + + + +
#SampulJudulPenerbitKategoriRakStok tersisaAksi
-
- + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - -
#SampulJudulPenerbitKategoriRakStok tersisaAksi
+
+ + <?= $book['title']; ?> +
+
+

+

+
+ 0) : + $rndm = md5(rand(0, 10000)); ?> - <?= $book['title']; ?> - - -

-

-
- 0) : - $rndm = md5(rand(0, 10000)); - ?> - - - - - -
+ bookElement.checked = bookSelection.has(''); + + + + + +
+