odds-ends-changes #3

Merged
softwareshinobi merged 5 commits from odds-ends-changes into main 2026-02-19 00:47:33 -05:00
Showing only changes of commit 7e93b14012 - Show all commits

View File

@@ -1,177 +1,112 @@
{% load static %} {% load static %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manage Rental Bikes | Robert's Bike Rentals</title>
<title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootswatch@5.3.2/dist/lux/bootstrap.min.css">
Manage Tournaments / Card Players Unite Admin
</title>
<!-- head / css / begin -->
<link rel="stylesheet" href="{% static 'styling/custom.css' %}"> <link rel="stylesheet" href="{% static 'styling/custom.css' %}">
</head>
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
<!-- head / css / end --> <body class="bg-light">
</head> <nav class="navbar navbar-expand-lg navbar-dark bg-primary mb-4">
<div class="container">
<body> <a class="navbar-brand" href="/home">Robert's Rentals</a>
<div class="d-flex border-start ps-3">
<a href="/home" class="btn btn-outline-light btn-sm me-2">Home</a>
<div> <a href="/about-roberts-rentals" class="btn btn-outline-light btn-sm me-2">About</a>
<a href="/bike-accessories" class="btn btn-outline-light btn-sm me-2">Accessories</a>
<a href="/home"> <a href="/bike/" class="btn btn-outline-light btn-sm me-2">Reserve</a>
<button type="button" class="btn btn-primary"> <a href="/accounts/login/" class="btn btn-secondary btn-sm">Log In</a>
Home </div>
</button> </div>
</a> </nav>
<a href="/about-roberts-rentals"> <div class="container">
<button type="button" class="btn btn-primary"> <header class="pb-3 mb-4 border-bottom">
About <h1 class="display-5 fw-bold text-dark">Manage Rental Bikes <small class="text-muted fs-6">[admin]</small></h1>
</button> </header>
</a>
<div class="row align-items-md-stretch">
<a href="/bike-accessories"> <div class="col-md-5">
<button type="button" class="btn btn-primary"> <div class="card border-0 shadow-sm mb-4">
Bike Accessories <img src="{% static 'img/close-up-bicycle-gears.jpg' %}" class="card-img-top img-fluid rounded" alt="Bicycle Gears">
</button> </div>
</a> </div>
<div class="col-md-7">
<a href="/bike/"> <div class="h-100 p-5 bg-white border rounded-3 shadow-sm">
<button type="button" class="btn btn-primary"> <h2>Fleet Overview</h2>
Reserve Bike <p>Use this administrative dashboard to monitor the status of our rental fleet. You can process returns for bikes currently checked out by customers.</p>
</button> {% if status_message %}
</a> <div class="alert alert-info">{{ status_message }}</div>
{% endif %}
<a href="/accounts/login/"> </div>
<button type="button" class="btn btn-secondary"> </div>
Log In </div>
</button>
</a> <div class="card shadow-sm mt-4">
<div class="card-body p-0">
</div> <div class="table-responsive">
<table class="table table-hover mb-0">
<thead class="table-dark">
<h1> <tr>
<th class="ps-4">Name</th>
Robert's Bike Rentals > Manage Rental Bikes <i>[admin]</i> <th>Description</th>
<th>Rental Price</th>
</h1> <th>Renter ID</th>
<th class="text-center">Actions</th>
<div> </tr>
</thead>
<img src="{% static 'img/close-up-bicycle-gears.jpg' %}" height=480 width=640> <tbody>
{% if latest_question_list %}
</div> {% for question in latest_question_list %}
<tr class="align-middle">
<p> <td class="fw-bold ps-4">{{ question.name }}</td>
<td>{{ question.description }}</td>
Use this page to view our fleet of rental bikes. You can use this page to return bikes that have been rented by customers. <td><span class="badge bg-success">&euro; {{ question.rental_price }}</span></td>
<td>
</p> {% if question.rented_user_id != 0 %}
<span class="text-primary fw-bold">{{ question.rented_user_id }}</span>
<div> {% else %}
<table class="center"> <span class="text-muted small">Available</span>
<thead> {% endif %}
<tr> </td>
<td class="text-center">
{% if question.rented_user_id != 0 %}
<a href="/bike/return/{{question.id}}/{{user.pk}}" class="btn btn-primary btn-sm px-3">
<th>Name</th> Return Bike
</a>
<th>Description</th> {% else %}
<th>Rental Price</th> <button type="button" class="btn btn-outline-secondary btn-sm disabled" disabled>
In Stock
<th>Rental User ID</th> </button>
{% endif %}
<th>Actions</th> </td>
</tr>
</tr> {% endfor %}
</thead> {% else %}
<tbody > <tr>
<td colspan="5" class="text-center py-5 text-muted">
{% if status_message %} <h3>No bikes are available.</h3>
</td>
<h4> </tr>
{% endif %}
{{ status_message }} </tbody>
</table>
</h4> </div>
</div>
{% endif %} </div>
{% if latest_question_list %} <footer class="pt-5 my-5 text-muted border-top text-center">
Robert's Bike Rental created by <a href="https://github.com/gomsur" class="text-decoration-none">Robert</a>.
{% for question in latest_question_list %} <br>
<small>Image by <a href="https://www.freepik.com" class="text-decoration-none">jcomp</a> on Freepik.</small>
</footer>
<tr> </div>
<td class=""> {{ question.name }} </td> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<td class=""> {{ question.description }} </td>
<td class=""> &euro; {{ question.rental_price }} </td>
<td class=""> {{ question.rented_user_id }} </td>
{% if question.rented_user_id != 0 %}
<td class="">
<a href="/bike/return/{{question.id}}/{{user.pk}}">
<button type="button" class="btn btn-primary">
Return bike: {{ question.name }}
</button>
</a>
</td>
{% else %}
<td class="">
<button type="button" class="btn btn-dark">
Not currently rented by a customer.
</button>
</td>
{% endif %}
</tr>
{% endfor %}
</ul>
{% else %}
<h2>No bikes are available.</h2>
{% endif %}
</tbody>
</table>
</div>
<div class="footer">
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
</div>
</body> </body>
</html> </html>