Use json instead of form for block editing

Description

Background

The use of a form for block editing runs out in a conflict when blocks with other forms are on the page. The page cannot be edited in this case.

The use of JSON ajax would be much better, also because it would remove the dependency with the PageController.

6 commits have already been made, status is unknown

Requirements

  • Don't use form to edit blocks, use JSON ajax instead, because editing a page with form block currently results in an error due to form conflicts

  • Must post to a Grid controller, so it can be used in multiple places

  • Preservice consistency with navigation editing

Technical tasks

None

Deployment actions

remove javascripts (also jquery ui) from base view (are now loaded with asset manager)

{% javascripts output='js/scripts.js'
'@IntegratedWebsiteBundle/Resources/public/js/page.js'
'@IntegratedWebsiteBundle/Resources/public/js/menu.js'
'@IntegratedWebsiteBundle/Resources/public/js/grid.js' %}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}

Remove edit form

Add handlebars:

{% if integrated_block_edit|default %}
{{ include('@IntegratedWebsite/handlebars/grid.html.twig') }}
{% endif %}

{% if integrated_menu_edit|default %}
{{ include('@IntegratedWebsite/handlebars/menu.html.twig') }}
{% endif %}

Remove template 'IntegratedWebsiteBundle:Form:form_div_layout.html.twig' from config.yml

Status

Assignee

Unassigned

Client

Marijn Otte

Epic Link

Sprint

None

Fix versions

Configure