Skip to content

Commit

Permalink
Add new form flow pages
Browse files Browse the repository at this point in the history
Co-authored-by: Frederike Ramin <[email protected]>
Co-authored-by: Joschka de Cuveland <[email protected]>
  • Loading branch information
3 people committed Oct 10, 2023
1 parent b06d71f commit 9260a44
Show file tree
Hide file tree
Showing 6 changed files with 2,164 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"kind": "collectionType",
"collectionName": "formular_flow_pages",
"info": {
"singularName": "formular-flow-page",
"pluralName": "formular-flow-pages",
"displayName": "FormularFlowPage"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"slug": {
"type": "string",
"required": true,
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"meta": {
"type": "component",
"repeatable": false,
"component": "page.meta-page-info",
"required": true,
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"heading": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"pre_form": {
"type": "dynamiczone",
"components": [
"basic.heading",
"basic.paragraph"
],
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"form": {
"type": "dynamiczone",
"components": [
"form-elements.input",
"form-elements.select",
"form-elements.dropdown"
],
"pluginOptions": {
"i18n": {
"localized": true
}
}
}
},
"post_form": {
"type": "dynamiczone",
"components": [
"basic.heading",
"basic.paragraph"
],
"pluginOptions": {
"i18n": {
"localized": true
}
}
}
}
9 changes: 9 additions & 0 deletions src/api/formular-flow-page/controllers/formular-flow-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* formular-flow-page controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::formular-flow-page.formular-flow-page');
9 changes: 9 additions & 0 deletions src/api/formular-flow-page/routes/formular-flow-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* formular-flow-page router
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::formular-flow-page.formular-flow-page');
9 changes: 9 additions & 0 deletions src/api/formular-flow-page/services/formular-flow-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* formular-flow-page service
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::formular-flow-page.formular-flow-page');
Loading

0 comments on commit 9260a44

Please sign in to comment.