You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51 lines
1.5 KiB

{% set formMetas %}
{% for item in ['metaTitle', 'metaDescrition'] %}
{{ form_row(form[item]) }}
{% endfor %}
{% endset %}
{% set formOpenGraph %}
{% for item in ['ogTitle', 'ogDescription', 'ogImage'] %}
{{ form_row(form[item]) }}
{% endfor %}
{% endset %}
{% set formOthers %}
{% for item in ['name', 'template'] %}
{{ form_row(form[item]) }}
{% endfor %}
{% endset %}
{% set formSitemap %}
{% endset %}
<div class="row">
<div class="col-md-8 p-2">
{{ form_widget(form) }}
</div>
<div class="col-md-4 p-3">
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#form-page-metas">{{ 'Meta datas'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#form-page-og">{{ 'OpenGraph'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#form-page-others">{{ 'Others'|trans }}</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane show active p-3" id="form-page-metas">
{{ formMetas|raw }}
</div>
<div class="tab-pane p-3" id="form-page-og">
{{ formOpenGraph|raw }}
</div>
<div class="tab-pane p-3" id="form-page-others">
{{ formOthers|raw }}
</div>
</div>
</div>
</div>