diff --git a/config.yaml b/config.yaml index f8f97cf..2a99cca 100644 --- a/config.yaml +++ b/config.yaml @@ -261,6 +261,11 @@ views: files: - web/layouts/_partials/address_autocomplete.html - web/layouts/solidarity_transport/driver_create.html + driver_update: + files: + - web/layouts/agenda/_partials/address.html + - web/layouts/_partials/address_autocomplete.html + - web/layouts/solidarity_transport/driver_update.html driver_display: files: - web/layouts/_partials/address_autocomplete.html @@ -367,6 +372,8 @@ icons: svg: coopgo:parcoursmob/monogram: hero:outline/archive-box: + hero:outline/arrow-long-right: + hero:outline/arrow-path-rounded-square: hero:outline/briefcase: hero:outline/support: hero:outline/group_module: diff --git a/web/layouts/beneficiaries/update.html b/web/layouts/beneficiaries/update.html index a011eb9..0316160 100644 --- a/web/layouts/beneficiaries/update.html +++ b/web/layouts/beneficiaries/update.html @@ -15,12 +15,7 @@ file_number: '{{ .ViewState.Data.file_number }}', gender: {{.ViewState.Data.gender}} }, - other_properties: { - situation: '{{.ViewState.Data.other_properties.situation}}', - subscription_reason: '{{.ViewState.Data.other_properties.subscription_reason}}', - status: '{{.ViewState.Data.other_properties.status}}', - comment: '{{.ViewState.Data.other_properties.comment}}' - }, + other_properties: {{if .ViewState.Data.other_properties}}{{ json .ViewState.Data.other_properties }}{{else}}{}{{end}}, other_properties_serialized: null, rules: { first_name: ['required'], @@ -49,6 +44,7 @@ this.formValidation.fields[field] = Iodine.assert(this.fields[field], this.rules[field]) }, submit(event) { + this.other_properties_serialized = JSON.stringify(this.other_properties) this.validate() if(!this.formValidation.valid) { this.isFormValid = false @@ -58,6 +54,7 @@ } }">