From 101fda7762c0ec72a080d47eedf0d3f3bbd06649 Mon Sep 17 00:00:00 2001 From: Danny van Wijk Date: Wed, 14 Aug 2024 14:35:07 +0200 Subject: [PATCH] Fix form pagepart view variable --- .../Resources/views/PageParts/LegalOptInPagePart/view.html.twig | 2 +- .../Resources/views/PageParts/CheckboxPagePart/view.html.twig | 2 +- .../Resources/views/PageParts/ChoicePagePart/view.html.twig | 2 +- .../Resources/views/PageParts/EmailPagePart/view.html.twig | 2 +- .../Resources/views/PageParts/FileUploadPagePart/view.html.twig | 2 +- .../views/PageParts/MultiLineTextPagePart/view.html.twig | 2 +- .../views/PageParts/SingleLineTextPagePart/view.html.twig | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Kunstmaan/CookieBundle/Resources/skeleton/legal/Resources/views/PageParts/LegalOptInPagePart/view.html.twig b/src/Kunstmaan/CookieBundle/Resources/skeleton/legal/Resources/views/PageParts/LegalOptInPagePart/view.html.twig index 294935f04d..c7cb3ef96e 100644 --- a/src/Kunstmaan/CookieBundle/Resources/skeleton/legal/Resources/views/PageParts/LegalOptInPagePart/view.html.twig +++ b/src/Kunstmaan/CookieBundle/Resources/skeleton/legal/Resources/views/PageParts/LegalOptInPagePart/view.html.twig @@ -1,5 +1,5 @@ {% if frontendform is defined %} - {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : frontendformobject.submitted } }) }} + {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : isSubmitted } }) }} {{ 'kuma.cookie.pageparts.optin.policy' | trans }} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/CheckboxPagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/CheckboxPagePart/view.html.twig index cdc98caff6..3bfd73d9d9 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/CheckboxPagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/CheckboxPagePart/view.html.twig @@ -1,3 +1,3 @@ {% if frontendform is defined %} - {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : frontendformobject.submitted } }) }} + {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : isSubmitted } }) }} {% endif %} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/ChoicePagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/ChoicePagePart/view.html.twig index f1d8ccb990..6e289c06f9 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/ChoicePagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/ChoicePagePart/view.html.twig @@ -1,4 +1,4 @@ {% if frontendform is defined %} - {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : frontendformobject.submitted } }) }} + {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : isSubmitted } }) }} {{ form_errors(frontendform['formwidget_'~resource.uniqueId]) }} {% endif %} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/EmailPagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/EmailPagePart/view.html.twig index cdc98caff6..3bfd73d9d9 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/EmailPagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/EmailPagePart/view.html.twig @@ -1,3 +1,3 @@ {% if frontendform is defined %} - {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : frontendformobject.submitted } }) }} + {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : isSubmitted } }) }} {% endif %} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/FileUploadPagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/FileUploadPagePart/view.html.twig index cdc98caff6..3bfd73d9d9 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/FileUploadPagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/FileUploadPagePart/view.html.twig @@ -1,3 +1,3 @@ {% if frontendform is defined %} - {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : frontendformobject.submitted } }) }} + {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : isSubmitted } }) }} {% endif %} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/MultiLineTextPagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/MultiLineTextPagePart/view.html.twig index cdc98caff6..3bfd73d9d9 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/MultiLineTextPagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/MultiLineTextPagePart/view.html.twig @@ -1,3 +1,3 @@ {% if frontendform is defined %} - {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : frontendformobject.submitted } }) }} + {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : isSubmitted } }) }} {% endif %} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/SingleLineTextPagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/SingleLineTextPagePart/view.html.twig index cdc98caff6..3bfd73d9d9 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/SingleLineTextPagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/SingleLineTextPagePart/view.html.twig @@ -1,3 +1,3 @@ {% if frontendform is defined %} - {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : frontendformobject.submitted } }) }} + {{ form_widget(frontendform['formwidget_'~resource.uniqueId], { 'attr' : {'bound' : isSubmitted } }) }} {% endif %}