main
| Rev | Line | |
|---|
| [7517a3a] | 1 | <%- include('../partials/header', { title: building.name }) %>
|
|---|
| 2 |
|
|---|
| 3 | <h1><%= building.name %></h1>
|
|---|
| 4 |
|
|---|
| 5 | <div>
|
|---|
| 6 | <h2>Building Information</h2>
|
|---|
| 7 | <table>
|
|---|
| 8 | <tr>
|
|---|
| 9 | <th>Address: </th>
|
|---|
| 10 | <td><%= building.address %></td>
|
|---|
| 11 | </tr>
|
|---|
| 12 | <% if (building.description) { %>
|
|---|
| 13 | <tr>
|
|---|
| 14 | <th>Description:</th>
|
|---|
| 15 | <td><%= building.description %></td>
|
|---|
| 16 | </tr>
|
|---|
| 17 | <% } %>
|
|---|
| 18 | <% if (building.architect) { %>
|
|---|
| 19 | <tr>
|
|---|
| 20 | <th>Architect: </th>
|
|---|
| 21 | <td><%= building.architect %></td>
|
|---|
| 22 | </tr>
|
|---|
| 23 | <% } %>
|
|---|
| 24 | </table>
|
|---|
| 25 | </div>
|
|---|
| 26 |
|
|---|
| 27 | <h2>Floors</h2>
|
|---|
| 28 | <p>Select a floor to view available units: </p>
|
|---|
| 29 |
|
|---|
| 30 | <div class="list">
|
|---|
| 31 | <% if (floors && floors.length > 0) { %>
|
|---|
| 32 | <% floors.forEach(floor => { %>
|
|---|
| 33 | <div class="list-item">
|
|---|
| 34 | <h3>Floor <%= floor.floor_number %></h3>
|
|---|
| 35 | <% if (floor.layout_image) { %>
|
|---|
| 36 | <p>Layout: <%= floor.layout_image %></p>
|
|---|
| 37 | <% } %>
|
|---|
| 38 | <a href="/floors/<%= floor.floor_id %>/units" class="btn">View Units</a>
|
|---|
| 39 | </div>
|
|---|
| 40 | <% }); %>
|
|---|
| 41 | <% } else { %>
|
|---|
| 42 | <p>No floors available. </p>
|
|---|
| 43 | <% } %>
|
|---|
| 44 | </div>
|
|---|
| 45 |
|
|---|
| 46 | <a href="/buildings" class="btn btn-secondary">← Back</a>
|
|---|
| 47 |
|
|---|
| 48 | |
|---|
Note:
See
TracBrowser
for help on using the repository browser.