Add first two pages (placeholders), and navigation mechanism

This commit is contained in:
Senad Uka
2019-04-09 06:01:21 +02:00
parent 262f71164c
commit 5b25068009
9 changed files with 57 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
const getDobrodosli = (req,res) => {
res.render('dobrodosli', { nextStep: '/vrstanekretnine' } );
}
module.exports = {
getDobrodosli
};

View File

@@ -1,5 +1,5 @@
const getVrstaNekretnine = (req,res) => {
res.render('vrsta_nekretnine');
res.render('vrsta_nekretnine', { nextStep: '/' } );
}
module.exports = {

3
app/views/dobrodosli.ejs Normal file
View File

@@ -0,0 +1,3 @@
<a href="<%= nextStep %>"><button>Kreni</button></a>

14
app/views/layout.ejs Normal file
View File

@@ -0,0 +1,14 @@
<!doctype>
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
Something in your body:
<%-body%>
</body>
</html>

View File

@@ -1 +1,3 @@
<html><body><h1>Hamo</h1></body></html>
<a href="<%= nextStep %>"> >>> </a>