main
|
Last change
on this file since 7517a3a was 7517a3a, checked in by Luka Krstikj <luka.krstik@…>, 16 hours ago |
|
init
|
-
Property mode
set to
100644
|
|
File size:
717 bytes
|
| Line | |
|---|
| 1 | <%- include('../partials/header', { title: 'Select Floor' }) %>
|
|---|
| 2 |
|
|---|
| 3 | <h1>Step 2: Select Floor</h1>
|
|---|
| 4 | <p>Building: <strong><%= building.name %></strong></p>
|
|---|
| 5 | <p>Choose a floor to add a new unit: </p>
|
|---|
| 6 |
|
|---|
| 7 | <div class="list">
|
|---|
| 8 | <% if (floors && floors.length > 0) { %>
|
|---|
| 9 | <% floors.forEach(floor => { %>
|
|---|
| 10 | <div class="list-item">
|
|---|
| 11 | <h3>Floor <%= floor.floor_number %></h3>
|
|---|
| 12 | <p>Layout: <%= floor.layout_image %></p>
|
|---|
| 13 | <a href="/admin/create-unit?floor_id=<%= floor.floor_id %>&admin_id=<%= admin_id %>" class="btn">Select Floor</a>
|
|---|
| 14 | </div>
|
|---|
| 15 | <% }); %>
|
|---|
| 16 | <% } else { %>
|
|---|
| 17 | <p>No floors found for this building.</p>
|
|---|
| 18 | <% } %>
|
|---|
| 19 | </div>
|
|---|
| 20 |
|
|---|
| 21 | <a href="/admin/buildings" class="btn btn-secondary">← Back</a>
|
|---|
| 22 |
|
|---|
| 23 | |
|---|
Note:
See
TracBrowser
for help on using the repository browser.