source: views/client/buildings.ejs@ 7517a3a

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

init

  • Property mode set to 100644
File size: 657 bytes
Line 
1<%- include('../partials/header', { title: 'Browse Buildings' }) %>
2
3<h1>Buildings</h1>
4<p>Select a buildint to view it.</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><strong>Address:</strong> <%= building.address %></p>
12 <% if (building.description) { %>
13 <p><%= building.description %></p>
14 <% } %>
15 <a href="/buildings/<%= building.building_id %>">View Details</a>
16 </div>
17 <% }); %>
18 <% } else { %>
19 <p>No buildings available at this time.</p>
20 <% } %>
21</div>
22
23
Note: See TracBrowser for help on using the repository browser.