Type of real estate

This commit is contained in:
Senad Uka
2019-04-14 06:01:37 +02:00
parent dee4df9bd8
commit 0f7e9f9285
2 changed files with 26 additions and 1 deletions

View File

@@ -1,5 +1,15 @@
const vrsteNekretnina = [
{ ime: "Kuća", id: "kuca" },
{ ime: "Stan", id: "stan" },
{ ime: "Vikendica", id: "vikendica" }
]
const getVrstaNekretnine = (req,res) => {
res.render('vrsta_nekretnine', { nextStep: '/' } );
res.render('vrsta_nekretnine', {
nextStep: '/',
vrste: vrsteNekretnina
});
}
module.exports = {

View File

@@ -1,3 +1,18 @@
<div class="row center-align">
<h2>Koju nekretninu tražite?</h2>
</div>
<div class="row center-align">
<ul class="collection with-header">
<% for(let vrsta of vrste) { %>
<li class="collection-item"><div><%= vrsta.ime %><a href="#!" class="secondary-content"><i class="material-icons">send</i></a></div></li>
<% } %>
</ul>
</div>
<a href="<%= nextStep %>"> >>> </a>