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

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

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Product owner

Marijn Otte

OTM project ID

None

Client

Marijn Otte

Plan date

None

Developer

Johan Liefers

Code reviewer

Ger Jan van den Bosch

Max. hours

None

Error message

None

Follow up date

None

Switches

None

Refiner

None

Story Points

8

Time tracking

25h 30m

Epic Link

Sprint

None

Fix versions

Due date

2017/05/25

Priority

Blocker
Configure