- styled asteriks sign;
- fixed issue with validation on registration page; - fixed issue with inputnumber; - fixed issue with editor field;; - added editors for new faq item form; - fixed displaying html as simple text; - fixed saving company data after saving; - added toast for edit bando form; - improved edit forms form; - fixed styles for various elements;
This commit is contained in:
334
src/tempData.js
334
src/tempData.js
@@ -1,337 +1,3 @@
|
||||
export const bandoTest = {
|
||||
"name": "Innovazione digitale 2024",
|
||||
"confidi": false,
|
||||
"descriptionShort": "Supporto alle PMI per progetti di digitalizzazione e innovazione tecnologica.",
|
||||
"descriptionLong": "Il bando \"Innovazione Digitale 2024\" mira a sostenere le PMI nell'adozione di tecnologie digitali innovative. I progetti finanziabili includono l'implementazione di soluzioni di intelligenza artificiale, blockchain, IoT, e altre tecnologie avanzate che possono migliorare la competitività delle imprese.",
|
||||
"documentationRequested": "Documentazione richiesta*",
|
||||
"dates": [
|
||||
"2024-08-27T22:00:00.000Z",
|
||||
"2024-10-29T23:00:00.000Z"
|
||||
],
|
||||
"amount": 10000,
|
||||
"amountMax": 2500,
|
||||
"aimedTo": [
|
||||
{
|
||||
"id": 3,
|
||||
"value": "PMI con sede in Umbria",
|
||||
"status": "existing"
|
||||
}
|
||||
],
|
||||
"faq": [
|
||||
{
|
||||
"id": 2,
|
||||
"question": "Question 1?",
|
||||
"answer": "Lorem ipsum dolor",
|
||||
"visible": true,
|
||||
"status": "existing"
|
||||
}
|
||||
],
|
||||
status: 'draft',
|
||||
id: 11,
|
||||
createdDate: "2024-08-07T08:14:07.849Z",
|
||||
updatedDate: "2024-08-07T08:14:07.849Z",
|
||||
"documentation":[
|
||||
{
|
||||
"id":18,
|
||||
"name":"SCR-20240820-kiwn.pdf",
|
||||
"filePath":"https://mementoresources.s3.eu-west-1.amazonaws.com/gepafin/SCR-20240820-kiwn.pdf",
|
||||
"description":null,
|
||||
"createdDate":"2024-08-26T06:51:11.800799252",
|
||||
"updatedDate":"2024-08-26T06:51:11.800826092"
|
||||
}
|
||||
],
|
||||
"criteria":[
|
||||
{
|
||||
"id":null,
|
||||
"value":"Innovatività del progetto",
|
||||
"status":"new",
|
||||
"score":9
|
||||
},
|
||||
{
|
||||
"id":null,
|
||||
"value":"Impatto sulla competitività dell'azienda",
|
||||
"status":"new",
|
||||
"score":3
|
||||
},
|
||||
{
|
||||
"id":null,
|
||||
"value":"Sostenibilità economico-finanziaria",
|
||||
"status":"new",
|
||||
"score":5
|
||||
}
|
||||
],
|
||||
"threshold":11,
|
||||
"images":[
|
||||
{
|
||||
"id":19,
|
||||
"name":"photo-1618245318763-a15156d6b23c.avif",
|
||||
"filePath":"https://mementoresources.s3.eu-west-1.amazonaws.com/gepafin/photo-1618245318763-a15156d6b23c.avif",
|
||||
"description":null,
|
||||
"createdDate":"2024-08-26T07:28:16.954763338",
|
||||
"updatedDate":"2024-08-26T07:28:16.954843237"
|
||||
}
|
||||
],
|
||||
"checklist":[
|
||||
{
|
||||
"id":null,
|
||||
"value":"Innovatività del progetto",
|
||||
"status":"new"
|
||||
},
|
||||
{
|
||||
"id":null,
|
||||
"value":"Some new check",
|
||||
"status":"new"
|
||||
},
|
||||
{
|
||||
"id":null,
|
||||
"value":"Check #2",
|
||||
"status":"new"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export const formData = {
|
||||
id: 15,
|
||||
label: 'La forma per Innovazione digitale 2024',
|
||||
content: [
|
||||
{
|
||||
"id": "a9a8aeb479",
|
||||
"name": "textinput",
|
||||
"label": "Testo Breve",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Testo Breve"
|
||||
},
|
||||
{
|
||||
"name": "placeholder",
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": true,
|
||||
"minLength": "3",
|
||||
"maxLength": null,
|
||||
"pattern": null,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 1
|
||||
},
|
||||
{
|
||||
"id": "a20469fc97",
|
||||
"name": "textarea",
|
||||
"label": "Testo Lungo",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Testo Lungo"
|
||||
},
|
||||
{
|
||||
"name": "placeholder",
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": false,
|
||||
"minLength": null,
|
||||
"maxLength": null,
|
||||
"pattern": null,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 2
|
||||
},
|
||||
{
|
||||
"id": "a21dc560f6",
|
||||
"name": "wysiwyg",
|
||||
"label": "Campo di Testo Formattato",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Testo Formattato"
|
||||
},
|
||||
{
|
||||
"name": "placeholder",
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": false,
|
||||
"minLength": null,
|
||||
"maxLength": null,
|
||||
"pattern": null,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 3
|
||||
},
|
||||
{
|
||||
"id": "a5c3860c1a",
|
||||
"name": "numberinput",
|
||||
"label": "Campo Numerico",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Numero"
|
||||
},
|
||||
{
|
||||
"name": "placeholder",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"name": "step",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": false,
|
||||
"min": null,
|
||||
"max": null,
|
||||
"pattern": null,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 4
|
||||
},
|
||||
{
|
||||
"id": "a7252ecc8d",
|
||||
"name": "radio",
|
||||
"label": "Scelta Singola",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Scelta Singola"
|
||||
},
|
||||
{
|
||||
"name": "options",
|
||||
"value": [
|
||||
{
|
||||
"name": "o8df4ffa62",
|
||||
"label": "Radio opzione A"
|
||||
},
|
||||
{
|
||||
"name": "o3ed6fb4d8",
|
||||
"label": "Radio opzione B"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": true,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 5
|
||||
},
|
||||
{
|
||||
"id": "a778783c9d",
|
||||
"name": "select",
|
||||
"label": "Menu a Tendina",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Menu a Tendina"
|
||||
},
|
||||
{
|
||||
"name": "options",
|
||||
"value": [
|
||||
{
|
||||
"name": "od9f50d8a8",
|
||||
"label": "Opzione A"
|
||||
},
|
||||
{
|
||||
"name": "o8cb208732",
|
||||
"label": "Opzione B"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": false,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 6
|
||||
},
|
||||
{
|
||||
"id": "afee29df1a",
|
||||
"name": "switch",
|
||||
"label": "Casella di Spunta",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Casella di Spunta"
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": false
|
||||
},
|
||||
"dbId": 8
|
||||
},
|
||||
{
|
||||
"id": "a5fdbd77df",
|
||||
"name": "checkboxes",
|
||||
"label": "Scelta Multipla",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Scelta Multipla"
|
||||
},
|
||||
{
|
||||
"name": "options",
|
||||
"value": [
|
||||
{
|
||||
"name": "o55ea20665",
|
||||
"label": "Opz checkbox A"
|
||||
},
|
||||
{
|
||||
"name": "oc10db3d79",
|
||||
"label": "Opz checkbox B"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": true,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 7
|
||||
},
|
||||
{
|
||||
"id": "a2810fd8a1",
|
||||
"name": "fileupload",
|
||||
"label": "Caricamento File",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Caricamento File"
|
||||
},
|
||||
{
|
||||
"name": "mime",
|
||||
"value": ['image/jpeg', 'image/png']
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": true,
|
||||
"maxSize": 100000,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 10
|
||||
},
|
||||
{
|
||||
"id": "ae14c94da7",
|
||||
"name": "datepicker",
|
||||
"label": "Data",
|
||||
"settings": [
|
||||
{
|
||||
"name": "label",
|
||||
"value": "Data"
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"isRequired": true,
|
||||
"custom": null
|
||||
},
|
||||
"dbId": 9
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export const elementItems = [
|
||||
{
|
||||
id: 1,
|
||||
|
||||
Reference in New Issue
Block a user