0.13.4 : add form-template
All checks were successful
Build release Docker image / Build Docker Images (push) Successful in 10m31s

This commit is contained in:
2026-03-08 16:07:54 +01:00
parent 42604b037b
commit 616b14edca
9 changed files with 6540 additions and 2 deletions

View File

@@ -100,6 +100,9 @@
"relation": "oneToMany",
"target": "api::channel.channel",
"mappedBy": "choral"
},
"available_tags": {
"type": "json"
}
}
}

View File

@@ -0,0 +1,57 @@
{
"kind": "collectionType",
"collectionName": "form_templates",
"info": {
"singularName": "form-template",
"pluralName": "form-templates",
"displayName": "FormTemplate"
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string",
"required": true
},
"description": {
"type": "text"
},
"state": {
"type": "enumeration",
"enum": [
"draft",
"published",
"archived"
],
"default": "draft"
},
"original_file": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
},
"schema": {
"type": "json"
},
"target_tags": {
"type": "json"
},
"choral": {
"type": "relation",
"relation": "oneToOne",
"target": "api::choral.choral"
},
"author": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* form-template controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::form-template.form-template');

View File

@@ -0,0 +1,7 @@
/**
* form-template router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::form-template.form-template');

View File

@@ -0,0 +1,7 @@
/**
* form-template service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::form-template.form-template');

View File

@@ -264,6 +264,9 @@
"relation": "oneToMany",
"target": "api::order.order",
"mappedBy": "user"
},
"admin_tags": {
"type": "json"
}
}
}