main
|
Last change
on this file since 7517a3a was 7517a3a, checked in by Luka Krstikj <luka.krstik@…>, 17 hours ago |
|
init
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | <%- include('../partials/header', { title: 'Floor ' + floor.floor_number + ' - ' + building.name }) %>
|
|---|
| 2 |
|
|---|
| 3 | <h1><%= building.name %> - Floor <%= floor.floor_number %></h1>
|
|---|
| 4 |
|
|---|
| 5 | <div class="list">
|
|---|
| 6 | <% if (units && units.length > 0) { %>
|
|---|
| 7 | <% units.forEach(unit => { %>
|
|---|
| 8 | <div class="list-item">
|
|---|
| 9 | <% if (unit.image) { %>
|
|---|
| 10 | <div class="unit-image">
|
|---|
| 11 | <img src="/uploads/<%= unit.image %>" alt="Unit <%= unit.unit_number %>" onerror="this.src='/images/placeholder.jpg'">
|
|---|
| 12 | </div>
|
|---|
| 13 | <% } %>
|
|---|
| 14 |
|
|---|
| 15 | <div class="unit-info">
|
|---|
| 16 | <h3>Unit <%= unit.unit_number %></h3>
|
|---|
| 17 |
|
|---|
| 18 | <div>
|
|---|
| 19 | <p><strong>Rooms:</strong> <%= unit.room_number %></p>
|
|---|
| 20 | <p><strong>Area:</strong> <%= unit.floor_area %> m²</p>
|
|---|
| 21 | <p><strong>Price:</strong> €<%= unit.price.toLocaleString() %></p>
|
|---|
| 22 | <p><strong>Status:</strong>
|
|---|
| 23 | <span class="status status-<%= unit.status.toLowerCase() %>">
|
|---|
| 24 | <%= unit.status %>
|
|---|
| 25 | </span>
|
|---|
| 26 | </p>
|
|---|
| 27 | </div>
|
|---|
| 28 |
|
|---|
| 29 | <a href="/units/<%= unit.unit_id %>" class="btn">View Details</a>
|
|---|
| 30 | </div>
|
|---|
| 31 | </div>
|
|---|
| 32 | <% }); %>
|
|---|
| 33 | <% } else { %>
|
|---|
| 34 | <p>No units available on this floor.</p>
|
|---|
| 35 | <% } %>
|
|---|
| 36 | </div>
|
|---|
| 37 |
|
|---|
| 38 | <a href="/buildings/<%= building.building_id %>" class="btn btn-secondary">← Back</a>
|
|---|
| 39 |
|
|---|
| 40 | |
|---|
Note:
See
TracBrowser
for help on using the repository browser.