Skip to content

Commit

Permalink
fix: additional props not defined (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsd0sneumann authored Oct 10, 2024
1 parent 2a4fb50 commit 7122cda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit 7122cda

Please sign in to comment.