Skip to content

Commit

Permalink
fixed blocks names
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Sep 21, 2022
1 parent d621fe6 commit 57d7090
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@

{% embed '@ibexadesign/ui/anchor_navigation_menu.html.twig' with anchor_params %}
{% block navigation_menu_body %}
{% trans_default_domain 'menu' %}

{% set items = [] %}

{% if content_type_edit_anchor_menu|default([])|length > 1 %}
{% for item in content_type_edit_anchor_menu %}
{% set items = items|merge([{
target_id: item.attributes['data-target-id'],
label: item.label is defined ? item.label : item.name,
label: item.label is defined ? item.label|trans : item.name,
}]) %}
{% endfor %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
</{{ element|default('div') }}>
{%- endblock form_row %}

{% block _ezplatform_content_forms_contenttype_update_metaFieldDefinitionsData_row -%}
{% block content_type_meta_field_definitions_data_row -%}
{%- set filled_group_key = form.vars.value|keys|first -%}
{%- set group_form = form.children[filled_group_key]|first -%}

Expand All @@ -436,12 +436,12 @@
</div>
{%- endblock %}

{% block ezplatform_content_forms_fielddefinition_update_widget -%}
{% block content_type_field_definition_widget -%}
{{- form_row(form.enabled, { label: 'seo.enabled'|trans|desc('Enable SEO for this content type') }) -}}
{{- form(form) -}}
{%- endblock %}

{% block _ezplatform_content_forms_contenttype_update_metaFieldDefinitionsData_content_entry_enabled_row -%}
{% block content_type_meta_field_definition_enabled_row -%}
{% use '@ibexadesign/ui/form_fields/toggle_widget.html.twig' %}

<div class="form-group">
Expand Down

0 comments on commit 57d7090

Please sign in to comment.