diff --git a/templates/user_loans.html b/templates/user_loans.html index 8c10045..07fac86 100644 --- a/templates/user_loans.html +++ b/templates/user_loans.html @@ -7,45 +7,98 @@ This page demonstrates the many-to-many relationship between users and tablets via the loans table.
-| Tablet | -Serial Number | -Loan Date | -Return Date | -Status | -||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ loan.brand }} {{ loan.model }} | -{{ loan.serial_number }} | -{{ loan.loan_date }} | -{{ loan.return_date or '-' }} | -- - {{ loan.status }} - - | + {% if active_loans %} +
| Tablet | +Serial Number | +Loan Date | +Status |
|---|
No loans recorded for this user.
{% endif %}