Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: additional props not defined #27

Merged
merged 2 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions public/css/admin-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
background-color: #194567;
}

#neusta_areabrick_config ul.additional-properties li.empty {
color: #404040;
}

/* Accordion */
#neusta_areabrick_config .accordion button {
background-color: #efefef;
Expand Down
4 changes: 2 additions & 2 deletions templates/bricks/overview.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
{% if hasAdditionalProperties %}
<td>
<ul class="additional-properties">
{% for additionalProperty in brick.additionalProperties %}
{% for additionalProperty in brick.additionalProperties|default([]) %}
<li class="{% if additionalProperty.name == 'tags' %}tag{% elseif additionalProperty.name == 'groups' %}group{% endif %}">
{{ additionalProperty.name }}: {{ additionalProperty.value }}
</li>
{% else %}
<li>{{ 'neusta_pimcore_areabrick_config.areabricks.overview.table.no_additional_properties'|trans }}</li>
<li class="empty">{{ 'neusta_pimcore_areabrick_config.areabricks.overview.table.no_additional_properties'|trans }}</li>
{% endfor %}
</ul>
</td>
Expand Down
Loading