add form-test-0.1
This commit is contained in:
parent
1e1238e14a
commit
28e680b3d2
|
@ -0,0 +1,116 @@
|
|||
<?xml version="1.0"?>
|
||||
<carddef id="1" url="https://wcs.dev.publik.love/backoffice/cards/1/">
|
||||
<name>Form test - lieux</name>
|
||||
<url_name>form-test-lieux</url_name>
|
||||
<discussion>false</discussion>
|
||||
<detailed_emails>true</detailed_emails>
|
||||
<disabled>false</disabled>
|
||||
<only_allow_one>false</only_allow_one>
|
||||
<enable_tracking_codes>false</enable_tracking_codes>
|
||||
<confirmation>false</confirmation>
|
||||
<always_advertise>false</always_advertise>
|
||||
<include_download_all_button>false</include_download_all_button>
|
||||
<has_captcha>false</has_captcha>
|
||||
<skip_from_360_view>false</skip_from_360_view>
|
||||
<workflow slug="workflow-generique-fiches" workflow_id="4">Workflow form test lieux (fiches)</workflow>
|
||||
<max_field_id>6</max_field_id>
|
||||
<fields>
|
||||
<field>
|
||||
<label type="str">Nom</label>
|
||||
<type type="str">string</type>
|
||||
<required type="bool">True</required>
|
||||
<varname type="str">nom</varname>
|
||||
<display_locations>
|
||||
<display_location>validation</display_location>
|
||||
<display_location>summary</display_location>
|
||||
</display_locations><prefill>
|
||||
<type>none</type>
|
||||
</prefill><anonymise type="bool">True</anonymise>
|
||||
<id type="str">1</id>
|
||||
</field><field>
|
||||
<label type="str">Slug de la ressource</label>
|
||||
<type type="str">string</type>
|
||||
<required type="bool">True</required>
|
||||
<varname type="str">slug</varname>
|
||||
<display_locations>
|
||||
<display_location>validation</display_location>
|
||||
<display_location>summary</display_location>
|
||||
</display_locations><prefill>
|
||||
<type>none</type>
|
||||
</prefill><anonymise type="bool">True</anonymise>
|
||||
<id type="str">2</id>
|
||||
</field><field>
|
||||
<label type="str">Adresse</label>
|
||||
<type type="str">string</type>
|
||||
<required type="bool">True</required>
|
||||
<varname type="str">adresse</varname>
|
||||
<display_locations>
|
||||
<display_location>validation</display_location>
|
||||
<display_location>summary</display_location>
|
||||
</display_locations><prefill>
|
||||
<type>none</type>
|
||||
</prefill><anonymise type="bool">True</anonymise>
|
||||
<id type="str">6</id>
|
||||
</field><field>
|
||||
<label type="str">Tél</label>
|
||||
<type type="str">string</type>
|
||||
<required type="bool">True</required>
|
||||
<varname type="str">tel</varname>
|
||||
<display_locations>
|
||||
<display_location>validation</display_location>
|
||||
<display_location>summary</display_location>
|
||||
</display_locations><prefill>
|
||||
<type>none</type>
|
||||
</prefill><anonymise type="bool">True</anonymise>
|
||||
<id type="str">3</id>
|
||||
</field><field>
|
||||
<label type="str">Longitude (GPS)</label>
|
||||
<type type="str">string</type>
|
||||
<required type="bool">True</required>
|
||||
<display_locations>
|
||||
<display_location>validation</display_location>
|
||||
<display_location>summary</display_location>
|
||||
</display_locations><anonymise type="bool">True</anonymise>
|
||||
<id type="str">4</id>
|
||||
</field><field>
|
||||
<label type="str">Latitude (GPS)</label>
|
||||
<type type="str">string</type>
|
||||
<required type="bool">True</required>
|
||||
<display_locations>
|
||||
<display_location>validation</display_location>
|
||||
<display_location>summary</display_location>
|
||||
</display_locations><anonymise type="bool">True</anonymise>
|
||||
<id type="str">5</id>
|
||||
</field>
|
||||
</fields><user-roles>
|
||||
<role slug="administrateur-fonctionnel" role_id="dbb1c8e1e00244d7aec152c0f582ce33">Administrateur fonctionnel</role>
|
||||
</user-roles><backoffice-submission-roles>
|
||||
<role slug="administrateur-fonctionnel" role_id="dbb1c8e1e00244d7aec152c0f582ce33">Administrateur fonctionnel</role>
|
||||
</backoffice-submission-roles><roles>
|
||||
<role slug="administrateur-fonctionnel" role_id="dbb1c8e1e00244d7aec152c0f582ce33" role_key="_viewer">Administrateur fonctionnel</role>
|
||||
<role slug="administrateur-fonctionnel" role_id="dbb1c8e1e00244d7aec152c0f582ce33" role_key="_editor">Administrateur fonctionnel</role>
|
||||
</roles><options />
|
||||
<custom_views>
|
||||
<custom_view>
|
||||
<title>listing ressources</title>
|
||||
<slug>listing-ressources</slug>
|
||||
<visibility>datasource</visibility>
|
||||
<filters>
|
||||
<filter-1>on</filter-1>
|
||||
<filter-1-operator>eq</filter-1-operator>
|
||||
<filter-1-value>{{ form_var_ressources_carto }}</filter-1-value>
|
||||
</filters><columns>
|
||||
<id>id</id>
|
||||
<id>time</id>
|
||||
<id>1</id>
|
||||
</columns><order_by>-receipt_time</order_by>
|
||||
</custom_view>
|
||||
</custom_views><geolocations>
|
||||
<geolocation key="base">Géolocalisation</geolocation>
|
||||
</geolocations><digest_templates>
|
||||
<template key="default">{{ form_var_nom }}</template>
|
||||
<template key="custom-view:vue">{{ form_var_nom }}</template>
|
||||
<template key="custom-view:user-vue">{{ form_var_nom }}</template>
|
||||
<template key="custom-view:listing-ressources">{{ form_var_slug }}</template>
|
||||
</digest_templates>
|
||||
</carddef>
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"resources": [
|
||||
{
|
||||
"@type": "passerelle-resource",
|
||||
"resource_type": "base_adresse.baseadresse",
|
||||
"title": "Base adresse nationale (Ban)",
|
||||
"slug": "ban",
|
||||
"description": "Base de donn\u00e9es de r\u00e9f\u00e9rence pour les adresses en France.",
|
||||
"log_level": "INFO",
|
||||
"access_rights": [],
|
||||
"service_url": "https://api-adresse.data.gouv.fr/",
|
||||
"api_geo_url": "https://geo.api.gouv.fr/",
|
||||
"zipcode": "",
|
||||
"latitude": null,
|
||||
"longitude": null,
|
||||
"sectors": []
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<datasource id="1" url="https://wcs.dev.publik.love/backoffice/settings/data-sources/1/">
|
||||
<name>Form test adresses</name>
|
||||
<slug>adresse</slug>
|
||||
<query_parameter>q</query_parameter>
|
||||
<id_parameter>id</id_parameter>
|
||||
<data_source>
|
||||
<type>json</type>
|
||||
<value>{{passerelle_url}}base-adresse/ban/addresses</value>
|
||||
</data_source>
|
||||
</datasource>
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<datasource id="2" url="https://wcs.dev.publik.love/backoffice/settings/data-sources/2/">
|
||||
<name>Form test lieux GoeJSON</name>
|
||||
<slug>format_geojson</slug>
|
||||
<description>Test source de données au format GeoJSON</description>
|
||||
<label_template_property>{{ display_fields.5.value }}</label_template_property>
|
||||
<data_source>
|
||||
<type>geojson</type>
|
||||
<value>{{eservices_url}}api/cards/ressources-infos-etendues/geojson?full=on</value>
|
||||
</data_source><notify_on_errors>true</notify_on_errors>
|
||||
<record_on_errors>true</record_on_errors>
|
||||
</datasource>
|
|
@ -0,0 +1,123 @@
|
|||
{
|
||||
"agendas": [
|
||||
{
|
||||
"label": "Form test agenda",
|
||||
"slug": "form-test-agenda",
|
||||
"kind": "meetings",
|
||||
"category": null,
|
||||
"minimal_booking_delay": 1,
|
||||
"maximal_booking_delay": 300,
|
||||
"permissions": {
|
||||
"view": "Administrateur fonctionnel",
|
||||
"edit": "Administrateur fonctionnel"
|
||||
},
|
||||
"resources": [],
|
||||
"default_view": "day",
|
||||
"reminder_settings": {
|
||||
"days_before_email": 3,
|
||||
"days_before_sms": null,
|
||||
"email_extra_info": "Rappel via le param\u00e9trage de l'agenda : \r\nVous avez rdv : {{ booking.event.agenda.label }} (Nom de l'agenda) pour un {{ booking.event.meeting_type.label }} (Type de rendez-vous)\r\n\r\nVous avez rendez-vous pour {{ booking.extra_data.type_piece }}.",
|
||||
"sms_extra_info": ""
|
||||
},
|
||||
"meetingtypes": [
|
||||
{
|
||||
"label": "choix 1",
|
||||
"slug": "choix-1",
|
||||
"duration": 15
|
||||
},
|
||||
{
|
||||
"label": "choix 2",
|
||||
"slug": "choix-2",
|
||||
"duration": 30
|
||||
},
|
||||
{
|
||||
"label": "choix 3",
|
||||
"slug": "choix-3",
|
||||
"duration": 45
|
||||
}
|
||||
],
|
||||
"desks": [
|
||||
{
|
||||
"label": "Guichet 1",
|
||||
"slug": "guichet-1",
|
||||
"timeperiods": [
|
||||
{
|
||||
"weekday": 0,
|
||||
"weekday_indexes": null,
|
||||
"date": null,
|
||||
"start_time": "09:30",
|
||||
"end_time": "12:30"
|
||||
},
|
||||
{
|
||||
"weekday": 1,
|
||||
"weekday_indexes": null,
|
||||
"date": null,
|
||||
"start_time": "09:00",
|
||||
"end_time": "12:30"
|
||||
},
|
||||
{
|
||||
"weekday": 2,
|
||||
"weekday_indexes": null,
|
||||
"date": null,
|
||||
"start_time": "09:00",
|
||||
"end_time": "12:30"
|
||||
},
|
||||
{
|
||||
"weekday": 3,
|
||||
"weekday_indexes": null,
|
||||
"date": null,
|
||||
"start_time": "09:00",
|
||||
"end_time": "12:30"
|
||||
},
|
||||
{
|
||||
"weekday": 4,
|
||||
"weekday_indexes": null,
|
||||
"date": null,
|
||||
"start_time": "09:00",
|
||||
"end_time": "12:30"
|
||||
}
|
||||
],
|
||||
"exceptions": [],
|
||||
"exception_sources": [
|
||||
{
|
||||
"settings_slug": "holidays",
|
||||
"settings_label": "Jours f\u00e9ri\u00e9s",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"unavailability_calendars": []
|
||||
},
|
||||
{
|
||||
"label": "Guichet 2",
|
||||
"slug": "guichet-2",
|
||||
"timeperiods": [
|
||||
{
|
||||
"weekday": 3,
|
||||
"weekday_indexes": null,
|
||||
"date": null,
|
||||
"start_time": "13:30",
|
||||
"end_time": "15:30"
|
||||
},
|
||||
{
|
||||
"weekday": 4,
|
||||
"weekday_indexes": null,
|
||||
"date": null,
|
||||
"start_time": "14:00",
|
||||
"end_time": "16:00"
|
||||
}
|
||||
],
|
||||
"exceptions": [],
|
||||
"exception_sources": [
|
||||
{
|
||||
"settings_slug": "holidays",
|
||||
"settings_label": "Jours f\u00e9ri\u00e9s",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"unavailability_calendars": []
|
||||
}
|
||||
],
|
||||
"desk_simple_management": false
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
{
|
||||
"data": [
|
||||
{
|
||||
"id": "1",
|
||||
"display_id": "1-1",
|
||||
"display_name": "Form test - lieux - n\u00b01-1",
|
||||
"text": "Form test - lieux - n\u00b01-1",
|
||||
"url": "https://wcs.dev.publik.love/backoffice/data/form-test-lieux/1/",
|
||||
"receipt_time": "2023-03-13T15:25:27",
|
||||
"last_update_time": "2023-03-13T17:23:42",
|
||||
"criticality_level": 0,
|
||||
"api_url": "https://wcs.dev.publik.love/api/cards/form-test-lieux/1/",
|
||||
"backoffice_url": "https://wcs.dev.publik.love/backoffice/data/form-test-lieux/1/",
|
||||
"fields": {
|
||||
"nom": "Maison de Services au Public Laragnais",
|
||||
"slug": "maison-de-services-au-public-laragnais",
|
||||
"adresse": "8A, Place de l'Eglise 05300 Laragne-Mont\u00e9glin",
|
||||
"tel": "04 92 65 26 97",
|
||||
"_unnamed": {
|
||||
"4": "5.821143",
|
||||
"5": "44.31392"
|
||||
}
|
||||
},
|
||||
"workflow": {
|
||||
"status": {
|
||||
"id": "recorded",
|
||||
"name": "Enregistr\u00e9e"
|
||||
},
|
||||
"real_status": {
|
||||
"id": "recorded",
|
||||
"name": "Enregistr\u00e9e"
|
||||
}
|
||||
},
|
||||
"submission": {
|
||||
"backoffice": false,
|
||||
"channel": "web"
|
||||
},
|
||||
"geolocations": {
|
||||
"base": {
|
||||
"lon": 5.821032,
|
||||
"lat": 44.313862
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
"display_id": "1-2",
|
||||
"display_name": "Form test - lieux - n\u00b01-2",
|
||||
"text": "Form test - lieux - n\u00b01-2",
|
||||
"url": "https://wcs.dev.publik.love/backoffice/data/form-test-lieux/2/",
|
||||
"receipt_time": "2023-03-13T15:25:27",
|
||||
"last_update_time": "2023-03-13T17:23:51",
|
||||
"criticality_level": 0,
|
||||
"api_url": "https://wcs.dev.publik.love/api/cards/form-test-lieux/2/",
|
||||
"backoffice_url": "https://wcs.dev.publik.love/backoffice/data/form-test-lieux/2/",
|
||||
"fields": {
|
||||
"nom": "France Services du Brian\u00e7onnais",
|
||||
"slug": "france-services-du-brianconnais",
|
||||
"adresse": "23 avenue de la R\u00e9publique 05100 Brian\u00e7on",
|
||||
"tel": "04 92 45 45 85",
|
||||
"_unnamed": {
|
||||
"4": "6.638799",
|
||||
"5": "44.898623"
|
||||
}
|
||||
},
|
||||
"workflow": {
|
||||
"status": {
|
||||
"id": "recorded",
|
||||
"name": "Enregistr\u00e9e"
|
||||
},
|
||||
"real_status": {
|
||||
"id": "recorded",
|
||||
"name": "Enregistr\u00e9e"
|
||||
}
|
||||
},
|
||||
"submission": {
|
||||
"backoffice": false,
|
||||
"channel": "web"
|
||||
},
|
||||
"geolocations": {
|
||||
"base": {
|
||||
"lon": 6.641183,
|
||||
"lat": 44.899039
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,15 @@
|
|||
Dépendances formulaire de test
|
||||
|
||||
Champs Autocompetion BAN
|
||||
|
||||
* Champ Adresse (autocomplétion BAN) :
|
||||
** datasource-form-test-adresse.wcs
|
||||
** connecteur_export_base-adresse_ban_20230320.json
|
||||
* Liste (Horaires)
|
||||
** export_agenda_form-test-agenda_20230320.json
|
||||
* Liste (Carte, données géographiques)
|
||||
** datasource-form-test-geojson.wcs
|
||||
** card-form-test-lieux.wcs
|
||||
** fiches-form-test-lieux.json
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0"?>
|
||||
<workflow id="4" url="https://wcs.dev.publik.love/backoffice/workflows/4/">
|
||||
<name>Workflow form test lieux (fiches)</name>
|
||||
<slug>workflow-generique-fiches</slug>
|
||||
<roles>
|
||||
<role id="_editor">Éditeur</role>
|
||||
<role id="_viewer">Visualisateur</role>
|
||||
</roles><possible_status>
|
||||
<status>
|
||||
<id>recorded</id>
|
||||
<name>Enregistrée</name>
|
||||
<colour>FFFFFF</colour>
|
||||
<visibility />
|
||||
<items>
|
||||
<item type="geolocate" id="1">
|
||||
<method>address_string</method>
|
||||
<address_string>{{ form_var_adresse }}</address_string>
|
||||
<overwrite>True</overwrite>
|
||||
</item><item type="editable" id="2">
|
||||
<by>
|
||||
<item role_id="_editor">_editor</item>
|
||||
</by><status>recorded</status>
|
||||
<label>Modifier la fiche</label>
|
||||
<operation_mode>full</operation_mode>
|
||||
</item><item type="choice" id="3">
|
||||
<label>Supprimer la fiche</label>
|
||||
<by>
|
||||
<item role_id="_editor">_editor</item>
|
||||
</by><status>deleted</status>
|
||||
<require_confirmation>True</require_confirmation>
|
||||
<ignore_form_errors>False</ignore_form_errors>
|
||||
<set_marker_on_status>False</set_marker_on_status>
|
||||
</item>
|
||||
</items>
|
||||
</status><status>
|
||||
<id>deleted</id>
|
||||
<name>Supprimée</name>
|
||||
<colour>FFFFFF</colour>
|
||||
<visibility />
|
||||
<items>
|
||||
<item type="remove" id="1" />
|
||||
</items>
|
||||
</status>
|
||||
</possible_status><global_actions>
|
||||
<action>
|
||||
<id>1</id>
|
||||
<name>❌ Suppression</name>
|
||||
<items>
|
||||
<item type="remove" id="1" />
|
||||
</items><triggers>
|
||||
<trigger type="manual" id="9430cff8-ee73-46e3-a27b-335f3c6e0a63">
|
||||
<roles>
|
||||
<item role_id="_editor">_editor</item>
|
||||
</roles>
|
||||
</trigger>
|
||||
</triggers>
|
||||
</action>
|
||||
</global_actions>
|
||||
</workflow>
|
Loading…
Reference in New Issue