2021-06-16 18:41:05 +02:00
|
|
|
<ul class="nav nav-pills" role="tablist">
|
2021-03-24 19:10:26 +01:00
|
|
|
<li class="nav-item" role="presentation">
|
|
|
|
<a class="nav-link {% if tab == 'content' %}active{% endif %}" data-toggle="tab" href="#form-node-edit-content">
|
|
|
|
{{ 'Content'|trans }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item" role="presentation">
|
|
|
|
<a class="nav-link {% if tab == 'routing' %}active{% endif %}" data-toggle="tab" href="#form-node-edit-routing">
|
|
|
|
{{ 'Routing'|trans }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item" role="presentation">
|
|
|
|
<a class="nav-link {% if tab == 'attributes' %}active{% endif %}" data-toggle="tab" href="#form-node-edit-attributes">
|
|
|
|
{{ 'Attributs'|trans }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item" role="presentation">
|
|
|
|
<a class="nav-link {% if tab == 'sitemap' %}active{% endif %}" data-toggle="tab" href="#form-node-edit-sitemap">
|
|
|
|
{{ 'Sitemap'|trans }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content pt-4">
|
|
|
|
<div class="tab-pane {% if tab == 'content' %}show active{% endif %}" id="form-node-edit-content">
|
|
|
|
{{ form_row(form.label) }}
|
|
|
|
|
|
|
|
{% if form.position is defined %}
|
|
|
|
{{ form_row(form.position) }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="accordion mb-3" id="node-page-action">
|
|
|
|
<div class="card">
|
|
|
|
{% set action = form.pageAction[0] %}
|
|
|
|
{% set options = not entity.id ? {'attr': {'checked': 'checked'}} : {} %}
|
|
|
|
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<h2 class="mb-0">
|
|
|
|
<label class="btn btn-link btn-block text-left"
|
|
|
|
for="{{ action.vars.id }}"
|
|
|
|
data-toggle="collapse"
|
|
|
|
data-target="#form-node-page-action-new">
|
|
|
|
{{ action.vars.label|trans }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="d-none">
|
|
|
|
{{ form_row(action, options) }}
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="form-node-page-action-new" class="collapse {% if not entity.id %}show{% endif %}" data-parent="#node-page-action">
|
|
|
|
<div class="card-body">
|
|
|
|
{{ form_row(form.pageType) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
{% set action = form.pageAction[1] %}
|
|
|
|
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<h2 class="mb-0">
|
|
|
|
<label class="btn btn-link btn-block text-left"
|
|
|
|
for="{{ action.vars.id }}"
|
|
|
|
data-toggle="collapse"
|
|
|
|
data-target="#form-node-page-action-existing">
|
|
|
|
{{ action.vars.label|trans }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="d-none">
|
|
|
|
{{ form_row(action) }}
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="form-node-page-action-existing" class="collapse" data-parent="#node-page-action">
|
|
|
|
<div class="card-body">
|
|
|
|
{{ form_row(form.pageEntity) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
{% set action = form.pageAction[2] %}
|
|
|
|
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<h2 class="mb-0">
|
|
|
|
<label class="btn btn-link btn-block text-left"
|
|
|
|
for="{{ action.vars.id }}"
|
|
|
|
data-toggle="collapse"
|
|
|
|
data-target="#form-node-page-action-none">
|
|
|
|
{{ action.vars.label|trans }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="d-none">
|
|
|
|
{{ form_row(action) }}
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="form-node-page-action-none" class="collapse" data-parent="#node-page-action">
|
|
|
|
<div class="card-body">
|
2021-05-16 19:55:23 +02:00
|
|
|
{{ form_row(form.aliasNode) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
{% set action = form.pageAction[3] %}
|
|
|
|
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<h2 class="mb-0">
|
|
|
|
<label class="btn btn-link btn-block text-left"
|
|
|
|
for="{{ action.vars.id }}"
|
|
|
|
data-toggle="collapse"
|
|
|
|
data-target="#form-node-page-action-alias">
|
|
|
|
{{ action.vars.label|trans }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="d-none">
|
2021-05-18 13:30:50 +02:00
|
|
|
{{ form_row(action) }}
|
2021-05-16 19:55:23 +02:00
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="form-node-page-action-alias" class="collapse" data-parent="#node-page-action">
|
|
|
|
<div class="card-body">
|
|
|
|
{{ 'No action'|trans }}
|
2021-03-24 19:10:26 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if entity.id %}
|
|
|
|
<div class="card">
|
2021-05-16 19:55:23 +02:00
|
|
|
{% set action = form.pageAction[4] %}
|
2021-03-24 19:10:26 +01:00
|
|
|
{% set options = {'attr': {'checked': 'checked'}} %}
|
|
|
|
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<h2 class="mb-0">
|
|
|
|
<label class="btn btn-link btn-block text-left"
|
|
|
|
for="{{ action.vars.id }}"
|
|
|
|
data-toggle="collapse"
|
|
|
|
data-target="#form-node-page-action-keep">
|
|
|
|
{{ action.vars.label|trans }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="d-none">
|
|
|
|
{{ form_row(action, options) }}
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="form-node-page-action-keep" class="collapse show" data-parent="#node-page-action">
|
|
|
|
<div class="card-body">
|
|
|
|
{{ 'No action'|trans }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane {% if tab == 'routing' %}show active{% endif %}" id="form-node-edit-routing">
|
|
|
|
{% if entity.id %}
|
|
|
|
<div class="float-right">
|
|
|
|
<span data-modal="{{ path('admin_site_node_urls', {entity: entity.id}) }}" class="btn" title="{{ 'Show all node URLs'|trans }}">
|
|
|
|
<span class="fa fa-list" data-modal="{{ path('admin_site_node_urls', {entity: entity.id}) }}"></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-05-16 19:55:23 +02:00
|
|
|
{% if entity.aliasNode %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{{ 'This element is an alias so the next configuration is ignored.'|trans }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-03-24 19:10:26 +01:00
|
|
|
{{ form_row(form.url) }}
|
|
|
|
|
2021-05-29 12:53:48 +02:00
|
|
|
<div class="pb-3">
|
|
|
|
<details>
|
|
|
|
<summary>
|
|
|
|
{{ 'Technical information'|trans }}
|
|
|
|
</summary>
|
|
|
|
<p class="pt-2">
|
|
|
|
{% set code = 'url://' ~ entity.routeName %}
|
|
|
|
{% if entity.parameters|length %}
|
|
|
|
{% set code = code ~ '?' %}
|
|
|
|
{% for param in entity.parameters %}
|
|
|
|
{% set code = code ~ param.name ~ '=&' %}
|
|
|
|
{% endfor %}
|
|
|
|
{% set code = code|trim('&') %}
|
|
|
|
{% endif %}
|
|
|
|
{% set code = '{{' ~ code ~ '}}' %}
|
|
|
|
|
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item">
|
2021-06-22 13:19:55 +02:00
|
|
|
<label>{{ 'Route name'|trans }}</label><br>
|
|
|
|
<input class="form-control" type="text" readonly value="{{ entity.routeName }}" />
|
2021-05-29 12:53:48 +02:00
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
2021-06-22 13:19:55 +02:00
|
|
|
<label>{{ 'Tag to insert in content'|trans }}</label><br>
|
|
|
|
<input class="form-control" type="text" readonly value="{{ code }}" />
|
2021-05-29 12:53:48 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
</details>
|
2021-03-24 19:10:26 +01:00
|
|
|
</div>
|
|
|
|
|
2021-05-14 17:36:52 +02:00
|
|
|
{{ form_row(form.disableUrl) }}
|
2021-03-24 19:10:26 +01:00
|
|
|
{{ form_row(form.code) }}
|
2021-05-24 18:45:23 +02:00
|
|
|
{{ form_row(form.contentType) }}
|
2021-03-24 19:10:26 +01:00
|
|
|
{{ form_row(form.controller) }}
|
|
|
|
|
|
|
|
<div class="accordion mb-3" data-collection="collection-node-parameters" id="form-node-edit-parameters-collection">
|
|
|
|
{% for item in form.parameters %}
|
|
|
|
<div class="card" data-collection-item="{{ loop.index }}">
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<span class="btn btn-link btn-block text-left" data-toggle="collapse" data-target="#form-node-parameter-{{ loop.index }}">
|
|
|
|
{{ item.vars.data.name }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="collapse" data-parent="#form-node-edit-parameters-collection" id="form-node-parameter-{{ loop.index }}">
|
|
|
|
<div class="card-body">
|
|
|
|
{{ form_row(item.name) }}
|
|
|
|
{{ form_row(item.defaultValue) }}
|
|
|
|
{{ form_row(item.requirement) }}
|
|
|
|
|
|
|
|
<div class="text-right">
|
|
|
|
<span data-collection-delete-container class="btn btn-sm btn-danger">
|
|
|
|
<span data-collection-delete="{{ loop.index }}" class="fa fa-trash"></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ form_rest(item) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div data-collection-add="collection-node-parameters" class="collection-add">
|
|
|
|
<span class="btn btn-primary" data-collection-add="collection-node-parameters">
|
|
|
|
<span class="fa fa-plus"></span>
|
|
|
|
{{ 'New parameter'|trans }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane {% if tab == 'attributes' %}show active{% endif %}" id="form-node-edit-attributes">
|
|
|
|
<div class="accordion mb-3" data-collection="collection-node-attributes" id="form-node-edit-attributes-collection">
|
|
|
|
{% for item in form.attributes %}
|
|
|
|
<div class="card" data-collection-item="{{ loop.index }}">
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<span class="btn btn-link btn-block text-left" data-toggle="collapse" data-target="#form-node-attribute-{{ loop.index }}">
|
|
|
|
{{ item.vars.data.label }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="collapse" data-parent="#form-node-edit-attributes-collection" id="form-node-attribute-{{ loop.index }}">
|
|
|
|
<div class="card-body">
|
|
|
|
{{ form_row(item.label) }}
|
|
|
|
{{ form_row(item.value) }}
|
|
|
|
|
|
|
|
<div class="text-right">
|
|
|
|
<span data-collection-delete-container class="btn btn-sm btn-danger">
|
|
|
|
<span data-collection-delete="{{ loop.index }}" class="fa fa-trash"></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ form_rest(item) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div data-collection-add="collection-node-attributes" class="collection-add">
|
|
|
|
<span class="btn btn-primary" data-collection-add="collection-node-attributes">
|
|
|
|
<span class="fa fa-plus"></span>
|
|
|
|
{{ 'New attribut'|trans }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane {% if tab == 'sitemap' %}show active{% endif %}" id="form-node-edit-sitemap">
|
2021-05-16 19:55:23 +02:00
|
|
|
{% if entity.aliasNode %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{{ 'This element is an alias so the next configuration is ignored.'|trans }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-03-24 19:10:26 +01:00
|
|
|
{{ form_row(form.sitemapParameters) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<template type="text/template" id="collection-node-parameters">
|
|
|
|
<div class="card" data-collection-item="__name__">
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<span class="btn btn-link btn-block text-left" data-toggle="collapse" data-target="#form-node-parameter-__name__">
|
|
|
|
{{ 'New parameter'|trans }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="collapse show" id="form-node-parameter-__name__" data-parent="#form-node-edit-parameters-collection">
|
|
|
|
<div class="card-body">
|
|
|
|
{{ form_row(form.parameters.vars.prototype.name) }}
|
|
|
|
{{ form_row(form.parameters.vars.prototype.defaultValue) }}
|
|
|
|
{{ form_row(form.parameters.vars.prototype.requirement) }}
|
|
|
|
|
|
|
|
<div class="text-right">
|
|
|
|
<span data-collection-delete-container class="btn btn-sm btn-danger"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ form_rest(form.parameters.vars.prototype) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template type="text/template" id="collection-node-attributes">
|
|
|
|
<div class="card" data-collection-item="__name__">
|
|
|
|
<div class="card-header p-0">
|
|
|
|
<span class="btn btn-link btn-block text-left" data-toggle="collapse" data-target="#form-node-attribute-__name__">
|
|
|
|
{{ 'New attribut'|trans }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="collapse show" id="form-node-attribute-__name__" data-parent="#form-node-edit-attributes-collection">
|
|
|
|
<div class="card-body">
|
|
|
|
{{ form_row(form.attributes.vars.prototype.label) }}
|
|
|
|
{{ form_row(form.attributes.vars.prototype.value) }}
|
|
|
|
|
|
|
|
<div class="text-right">
|
|
|
|
<span data-collection-delete-container class="btn btn-sm btn-danger"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ form_rest(form.attributes.vars.prototype) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<div class="d-none">
|
|
|
|
{{ form_rest(form) }}
|
|
|
|
</div>
|
|
|
|
|