Skip to content

Commit

Permalink
IBX-2928: Provided tooltip fallback for Content fieldtype description (
Browse files Browse the repository at this point in the history
…#2048)

* IBX-2928: Provided tooltip fallback for Content fieldtype description

* IBX-2928: Simplified solution
  • Loading branch information
barw4 authored May 30, 2022
1 parent 157264e commit 5129dc4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@
<div {% with { attr: wrapper_attr } %}{{ block('attributes') }}{% endwith %}>
<div{% with { attr: label_wrapper_attr } %}{{ block('attributes') }}{% endwith %}>
{% with { 'compound': false } %}{{- block('form_label') }}{% endwith %}
{% if field_type_descriptions[fieldtype.vars.languageCode] is defined and field_type_descriptions[fieldtype.vars.languageCode] != '' %}
<span class="ez-field-edit__icon-wrapper" title="{{ field_type_descriptions[fieldtype.vars.languageCode] }}">
{% set description = field_type_descriptions[fieldtype.vars.languageCode]|default(field_type_descriptions|first) %}
{% if description is not null %}
<span class="ez-field-edit__icon-wrapper" title="{{ description }}">
<svg class="ez-icon ez-icon--medium">
<use xlink:href="{{ ez_icon_path('system-information') }}"></use>
</svg>
Expand Down

0 comments on commit 5129dc4

Please sign in to comment.