WiP Changed welcome and input form for ad type

This commit is contained in:
Naida Vatric
2020-02-03 13:11:40 +01:00
parent 824db4fbc3
commit d45441f4be
12 changed files with 264 additions and 23 deletions

View File

@@ -8,6 +8,7 @@ const getRealEstateTypes = async (req, res) => {
const title = "Koju nekretninu tražite?";
let selectedAdType = AD_TYPE.AD_TYPE_SALE.id;
const labelAdType = [AD_TYPE.AD_TYPE_SALE.title, AD_TYPE.AD_TYPE_RENT.title];
if (
searchRequest &&
searchRequest.adType &&
@@ -21,6 +22,7 @@ const getRealEstateTypes = async (req, res) => {
res.render("realEstateType", {
selectedAdType,
labelAdType,
realEstateTypes,
title,
AD_TYPE