{% extends '@KunstmaanNode/Default/layout.html.twig' %} {% set form = tabPane.getFormView() %} {% block extrabodyclasses %}{{ parent() }} js-check-if-edited{% if nodeVersionLockCheck %} js-node-version-lock{% endif %}{% endblock %} {% block messages %} {% if queuedNodeTranslationAction %}
{{ "Warning" | trans }}: {% if queuedNodeTranslationAction.action == 'publish' %} {{ 'kuma_node.status.will_be_publish_at.%date%.raw' |trans({'%date%': queuedNodeTranslationAction.date|date('Y-m-d H:i:s')}) |raw }} {% else %} {{ 'kuma_node.status.will_be_unpublish_at.%date%.raw' |trans({'%date%':queuedNodeTranslationAction.date|date('Y-m-d H:i:s')}) |raw }} {% endif %} {{ 'kuma_node.status.button.schedulle_cancel'|trans() }}
{% endif %} {% if form_has_errors_recursive(form) %}
{{ "kuma_node.error.title" | trans }}: {{ "kuma_node.error.validation" | trans }} {{ form_errors(form) }}
{% endif %} {% endblock %} {% block header %}

{% if is_granted('ROLE_SUPER_ADMIN') %} {{ page.title }} {% else %} {{ page.title }} {% endif %} {% if draft %} {{ 'kuma_node.status.offline_draft.%public_url%.raw' |trans({'%public_url%': path('KunstmaanNodeBundle_nodes_edit', { 'id': node.id})}) |raw }} {% elseif not is_structure_node(page) %} {% if nodeTranslation.online %} {{ 'kuma_node.status.online_public.raw' |trans() |raw }} {% else %} {{ 'kuma_node.status.offline.raw' |trans() |raw }} {% endif %} {% if draftNodeVersion is not null %} {{ 'kuma_node.status.go_to_draft_version.%url%.raw' |trans({'%url%': path('KunstmaanNodeBundle_nodes_edit', { 'id': node.id, 'subaction': 'draft'}) }) |raw }} {% endif %} {% endif %}

{% endblock %} {% block content %} {% if nodeVersionLockCheck %} {% endif %} {{ form_start(form, {'method': 'POST', 'action': path('KunstmaanNodeBundle_nodes_edit', { 'id': node.id, 'subaction': subaction }), 'attr': {'novalidate': 'novalidate', 'id': 'pageadminform', 'class': 'form'}}) }} {{ knp_menu_render('sub_actions', { 'template': '@KunstmaanNode/Menu/knp_menu_actions.html.twig'}) }} {{ knp_menu_render('actions', { 'template': '@KunstmaanNode/Menu/knp_menu_actions.html.twig'}) }} {{ knp_menu_render('top_actions', { 'template': '@KunstmaanNode/Menu/knp_menu_top_actions.html.twig'}) }} {{ tabs_widget(tabPane) }} {% include '@KunstmaanNode/NodeAdmin/Modals/_publish.html.twig' %} {% include '@KunstmaanNode/NodeAdmin/Modals/_unpublish.html.twig' %} {{ form_end(form) }} {% include '@KunstmaanNode/NodeAdmin/_modals.html.twig' %} {% endblock %} {% block breadcrumb %} {% if getOverviewRoute(page) is not null %} Back to overview {% else %} {{ parent() }} {% endif %} {% endblock %} {% block extracss %} {% set cssPath = 'frontend/css/admin-style.css' %} {% if file_exists(cssPath) %} {% endif %} {% endblock %}