source: views/admin/select-building.ejs

main
Last change on this file was 7517a3a, checked in by Luka Krstikj <luka.krstik@…>, 23 hours ago

init

  • Property mode set to 100644
File size: 702 bytes
RevLine 
[7517a3a]1<%- include('../partials/header', { title: 'Select Building' }) %>
2
3<h1>Step 1: Select Building</h1>
4<p>Choose a building to add a new unit: </p>
5
6<div class="list">
7 <% if (buildings && buildings.length > 0) { %>
8 <% buildings.forEach(building => { %>
9 <div class="list-item">
10 <h3><%= building.name %></h3>
11 <p><%= building.address %></p>
12 <p><%= building.description %></p>
13 <a href="/admin/floors?building_id=<%= building.building_id %>&admin_id=<%= admin_id %>" class="btn">Select Building</a>
14 </div>
15 <% }); %>
16 <% } else { %>
17 <p>No buildings found for this admin.</p>
18 <% } %>
19</div>
20
21<a href="/admin" class="btn btn-secondary">← Back</a>
22
23
Note: See TracBrowser for help on using the repository browser.