Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update modal.html.twig #21

Open
wants to merge 3 commits into
base: 5.1
Choose a base branch
from
Open

Update modal.html.twig #21

wants to merge 3 commits into from

Conversation

ssnukala
Copy link

Fixed bug - json_encode missing

Resolves #20

ssnukala and others added 3 commits January 10, 2025 23:00
Fixed bug - json_encode missing
Changed UF Form parameter name to validator instead of validators (deprecated)

Removed initialization of the plugin elements, and moved it to the modal.html.twig page.
@@ -63,4 +63,10 @@
{% block scripts_page %}
<!-- Include page-specific JS -->
{{ encore_entry_script_tags('widget.formGenerator') }}

<script>
// Initialize form generator here instead of the plugin file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the issue with the current way it's done?

@lcharette
Copy link
Owner

Also, what is the benefit of using JSON_PRETTY_PRINT? It will only make the json "prettier" to look in the console no ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

validator variable not json_encoded in modal.html.twig
2 participants