Add first two pages (placeholders), and navigation mechanism
This commit is contained in:
7
app/controllers/dobrodosli.js
Normal file
7
app/controllers/dobrodosli.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const getDobrodosli = (req,res) => {
|
||||
res.render('dobrodosli', { nextStep: '/vrstanekretnine' } );
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getDobrodosli
|
||||
};
|
||||
@@ -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
3
app/views/dobrodosli.ejs
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
<a href="<%= nextStep %>"><button>Kreni</button></a>
|
||||
|
||||
14
app/views/layout.ejs
Normal file
14
app/views/layout.ejs
Normal 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>
|
||||
@@ -1 +1,3 @@
|
||||
<html><body><h1>Hamo</h1></body></html>
|
||||
|
||||
<a href="<%= nextStep %>"> >>> </a>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user