Skip to content

Commit

Permalink
Merge pull request #13 from ikhsan3adi/fine-per-day-settings
Browse files Browse the repository at this point in the history
Fix some UI
  • Loading branch information
ikhsan3adi authored Jul 8, 2024
2 parents 7b8f857 + 93a1d20 commit 0e9217b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions app/Views/fines/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
</div>
<div class="col-12 col-lg-7">
<div class="d-flex gap-2 justify-content-md-end">
<div>
<?php if (auth()->user()->inGroup('superadmin')) : ?>
<a href=" <?= base_url('admin/fines/settings'); ?>" class="btn btn-outline-danger text-nowrap">
Pengaturan Denda
</a>
<?php endif; ?>
</div>
<div>
<form action="" method="get">
<input type="hidden" name="paid-off" value="<?= $paidOffFilter ? 'true' : 'false'; ?>">
Expand Down
8 changes: 4 additions & 4 deletions app/Views/layouts/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
<div class="navbar-collapse justify-content-end px-0" id="navbarNav">
<ul class="navbar-nav flex-row ms-auto align-items-center justify-content-end gap-2" id="headerCollapse">
<li class="nav-item" id="navBtn">
<a href=" <?= base_url('admin/loans/new/members/search'); ?>" target="_blank" class="btn btn-primary">
<a href=" <?= base_url('admin/loans/new/members/search'); ?>" target="_blank" class="btn btn-primary text-nowrap">
Ajukan peminjaman
</a>
</li>
<li class="nav-item" id="navBtn">
<a href="<?= base_url('admin/returns/new/search'); ?>" class="btn btn-outline-primary">
<a href="<?= base_url('admin/returns/new/search'); ?>" class="btn btn-outline-primary text-nowrap">
Pengembalian buku
</a>
</li>
<li class="nav-item" id="navBtn">
<a href="<?= base_url('admin/fines/returns/search'); ?>" class="btn btn-outline-warning">
<a href="<?= base_url('admin/fines/returns/search'); ?>" class="btn btn-outline-warning text-nowrap">
Bayar denda
</a>
</li>
<?php if (auth()->user()->inGroup('superadmin')) : ?>
<li class="nav-item" id="navBtn">
<a href=" <?= base_url('admin/fines/settings'); ?>" class="btn btn-outline-danger">
<a href=" <?= base_url('admin/fines/settings'); ?>" class="btn btn-outline-danger text-nowrap">
Pengaturan Denda
</a>
</li>
Expand Down

0 comments on commit 0e9217b

Please sign in to comment.