main
|
Last change
on this file since 7517a3a was 7517a3a, checked in by Luka Krstikj <luka.krstik@…>, 25 hours ago |
|
init
|
-
Property mode
set to
100644
|
|
File size:
1.9 KB
|
| Line | |
|---|
| 1 | <%- include('../partials/header', { title: 'Unit ' + unit.unit_number }) %>
|
|---|
| 2 |
|
|---|
| 3 | <h1>Unit <%= unit.unit_number %> - <%= unit.building_name %></h1>
|
|---|
| 4 | <p>Floor <%= unit.floor_number %></p>
|
|---|
| 5 |
|
|---|
| 6 | <div>
|
|---|
| 7 | <div>
|
|---|
| 8 | <% if (unit.image) { %>
|
|---|
| 9 | <div class="main-image">
|
|---|
| 10 | <img src="/uploads/<%= unit.image %>" alt="Unit <%= unit.unit_number %>" onerror="this.src='/images/placeholder.jpg'">
|
|---|
| 11 | </div>
|
|---|
| 12 | <% } %>
|
|---|
| 13 | </div>
|
|---|
| 14 |
|
|---|
| 15 | <div class="unit-specifications">
|
|---|
| 16 | <h2>Specifications</h2>
|
|---|
| 17 | <table class="details-table">
|
|---|
| 18 | <tr>
|
|---|
| 19 | <th>Unit Number:</th>
|
|---|
| 20 | <td><%= unit.unit_number %></td>
|
|---|
| 21 | </tr>
|
|---|
| 22 | <tr>
|
|---|
| 23 | <th>Rooms:</th>
|
|---|
| 24 | <td><%= unit.room_number %></td>
|
|---|
| 25 | </tr>
|
|---|
| 26 | <tr>
|
|---|
| 27 | <th>Floor Area:</th>
|
|---|
| 28 | <td><%= unit.floor_area %> m²</td>
|
|---|
| 29 | </tr>
|
|---|
| 30 | <tr>
|
|---|
| 31 | <th>Price:</th>
|
|---|
| 32 | <td class="price">€<%= unit.price.toLocaleString() %></td>
|
|---|
| 33 | </tr>
|
|---|
| 34 | <tr>
|
|---|
| 35 | <th>Status:</th>
|
|---|
| 36 | <td>
|
|---|
| 37 | <span class="status status-<%= unit.status.toLowerCase() %>">
|
|---|
| 38 | <%= unit.status %>
|
|---|
| 39 | </span>
|
|---|
| 40 | </td>
|
|---|
| 41 | </tr>
|
|---|
| 42 | <tr>
|
|---|
| 43 | <th>Building:</th>
|
|---|
| 44 | <td><%= unit.building_name %></td>
|
|---|
| 45 | </tr>
|
|---|
| 46 | <tr>
|
|---|
| 47 | <th>Floor:</th>
|
|---|
| 48 | <td><%= unit.floor_number %></td>
|
|---|
| 49 | </tr>
|
|---|
| 50 | </table>
|
|---|
| 51 | </div>
|
|---|
| 52 | </div>
|
|---|
| 53 |
|
|---|
| 54 | <div>
|
|---|
| 55 | <% if (unit.floorplan) { %>
|
|---|
| 56 | <a href="/uploads/<%= unit.floorplan %>" target="_blank" class="btn btn-small">
|
|---|
| 57 | View Floor Plan
|
|---|
| 58 | </a>
|
|---|
| 59 | <% } %>
|
|---|
| 60 | </div>
|
|---|
| 61 |
|
|---|
| 62 | <div style="margin-top: 16px; display: flex; flex-direction: column;">
|
|---|
| 63 | <% if (unit.status === 'Available') { %>
|
|---|
| 64 | <a href="/units/<%= unit.unit_id %>/book" class="book-btn">Book Viewing Appointment</a>
|
|---|
| 65 | <% } else { %>
|
|---|
| 66 | <p>This unit is currently <%= unit.status.toLowerCase() %> and cannot be booked.</p>
|
|---|
| 67 | <% } %>
|
|---|
| 68 | <a href="/floors/<%= unit.floor_id %>/units" class="btn btn-secondary">← Back to Floor</a>
|
|---|
| 69 | </div> |
|---|
Note:
See
TracBrowser
for help on using the repository browser.