new listing link
This commit is contained in:
+30
-28
@@ -21,36 +21,38 @@
|
|||||||
|
|
||||||
<div class="container mt-4">
|
<div class="container mt-4">
|
||||||
<h1 class="text-center">Host Dashboard</h1>
|
<h1 class="text-center">Host Dashboard</h1>
|
||||||
<div class="mt-4">
|
<div class="mt-4 d-flex justify-content-between align-items-center">
|
||||||
<h2>Your Listings</h2>
|
<h2>Your Listings</h2>
|
||||||
<div class="table-responsive">
|
<a href="/create-listing">Add New Listing</a>
|
||||||
<table class="table table-bordered">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>ID</th>
|
|
||||||
<th>Title</th>
|
|
||||||
<th>Location</th>
|
|
||||||
<th>Property Type</th>
|
|
||||||
<th>Actions</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for listing in listings %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ listing.id }}</td>
|
|
||||||
<td>{{ listing.title }}</td>
|
|
||||||
<td>{{ listing.location }}</td>
|
|
||||||
<td>{{ listing.property_type }}</td>
|
|
||||||
<td>
|
|
||||||
<a href="/edit-listing/{{ listing.id }}" class="btn btn-warning btn-sm">Edit</a>
|
|
||||||
<button onclick="confirmDelete({{ listing.id }})" class="btn btn-danger btn-sm">Delete</button>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>ID</th>
|
||||||
|
<th>Title</th>
|
||||||
|
<th>Location</th>
|
||||||
|
<th>Property Type</th>
|
||||||
|
<th>Actions</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for listing in listings %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ listing.id }}</td>
|
||||||
|
<td>{{ listing.title }}</td>
|
||||||
|
<td>{{ listing.location }}</td>
|
||||||
|
<td>{{ listing.property_type }}</td>
|
||||||
|
<td>
|
||||||
|
<a href="/edit-listing/{{ listing.id }}" class="btn btn-warning btn-sm">Edit</a>
|
||||||
|
<button onclick="confirmDelete({{ listing.id }})" class="btn btn-danger btn-sm">Delete</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="mt-5">
|
<div class="mt-5">
|
||||||
<h2>Bookings</h2>
|
<h2>Bookings</h2>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
|
|||||||
Reference in New Issue
Block a user