Commit f424b272 by Harish Patel

layout changes to the project entity

1 parent 0d5c5f1f
{
"kind": "collectionType",
"collectionName": "locations",
"info": {
"singularName": "location",
"pluralName": "locations",
"displayName": "Location",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string",
"required": true,
"unique": true
},
"city": {
"type": "enumeration",
"enum": [
"Mumbai",
"Navi Mumbai",
"Gandhinagar",
"Chennai",
"Khandala"
],
"required": true
},
"slug": {
"type": "uid",
"targetField": "name",
"required": true
}
}
}
'use strict';
/**
* location controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::location.location');
'use strict';
/**
* location router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::location.location');
'use strict';
/**
* location service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::location.location');
...@@ -20,14 +20,6 @@ ...@@ -20,14 +20,6 @@
"type": "text", "type": "text",
"required": true "required": true
}, },
"priceFrom": {
"type": "decimal",
"required": true
},
"priceTo": {
"type": "decimal",
"required": true
},
"status": { "status": {
"type": "enumeration", "type": "enumeration",
"enum": [ "enum": [
...@@ -39,14 +31,6 @@ ...@@ -39,14 +31,6 @@
"required": true, "required": true,
"default": "New" "default": "New"
}, },
"minBedrooms": {
"type": "integer",
"required": true
},
"maxBedrooms": {
"type": "integer",
"required": true
},
"description": { "description": {
"type": "richtext", "type": "richtext",
"required": true "required": true
...@@ -54,7 +38,7 @@ ...@@ -54,7 +38,7 @@
"digitalSalesPresentation": { "digitalSalesPresentation": {
"type": "media", "type": "media",
"multiple": false, "multiple": false,
"required": true, "required": false,
"allowedTypes": [ "allowedTypes": [
"videos" "videos"
] ]
...@@ -68,14 +52,63 @@ ...@@ -68,14 +52,63 @@
"default": false, "default": false,
"required": true "required": true
}, },
"projectImages": {
"displayName": "Project Image",
"type": "component",
"repeatable": true,
"component": "layout.project-image"
},
"location": {
"type": "relation",
"relation": "oneToOne",
"target": "api::location.location"
},
"projectType": {
"type": "enumeration",
"enum": [
"Villas",
"Apartments",
"Commercial"
],
"required": true
},
"configurations": {
"displayName": "Project Configuration",
"type": "component",
"repeatable": true,
"component": "layout.project-configuration"
},
"bedroomTitle": {
"type": "string",
"required": true
},
"sizeTitle": {
"type": "string",
"required": false
},
"heroText1": { "heroText1": {
"type": "richtext" "type": "string"
}, },
"heroText2": { "heroText2": {
"type": "richtext" "type": "string"
}, },
"projectImages": { "heroText3": {
"displayName": "Project Image", "type": "string"
},
"heroText4": {
"type": "string"
},
"floorPlanImages": {
"type": "component",
"repeatable": true,
"component": "layout.project-image"
},
"unitPlanImages": {
"type": "component",
"repeatable": true,
"component": "layout.project-image"
},
"masterPlanImages": {
"type": "component", "type": "component",
"repeatable": true, "repeatable": true,
"component": "layout.project-image" "component": "layout.project-image"
......
{
"collectionName": "components_layout_project_configurations",
"info": {
"displayName": "Project Configuration",
"icon": "bed"
},
"options": {},
"attributes": {
"title": {
"type": "string",
"required": true
},
"saleableArea": {
"type": "integer"
},
"carpetArea": {
"type": "integer"
},
"price": {
"type": "decimal"
},
"bedrooms": {
"type": "decimal",
"required": true,
"max": 20,
"min": 1
},
"pricePerCarpetSqft": {
"type": "decimal"
},
"pricePerSaleableSqft": {
"type": "decimal"
}
}
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!