{% set title = 'info' %}{% embed 'network/widget/widget.html.twig' %} {% block content %} <ul class="grid gap-x-4 gap-y-1 sm:grid-cols-auto/fr"> {% if horse.isBlacktype %} <li class="font-medium contents" style="color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }}"> <span>{{ 'horse.blacktype'|trans }}</span> <span></span> </li> {% endif %} {% if horse.coveringFee and horse.coveringFee.value and horse.sex == 'horse.sex.stallion' %} <li class="font-medium contents" style="color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }}"> <span class="text-sm uppercase">{{ 'coveringFee'|trans }}</span><span> {{ horse.coveringFee|price_value }} {{ horse.coveringFee|price_unit }} {{ horse.coveringFeeYear ? '(' ~ horse.coveringFeeYear ~ ')' : null }} </span> </li> {% endif %} {% if horse.price and horse.price.value %} <li class="font-medium contents" style="color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }}"> <span class="text-sm uppercase">{{ 'horse.price'|trans }}</span><span>{{ horse.price|trans }}</span> </li> {% endif %} {% if horse.location %} <li class="font-medium contents" style="color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }}"> <span class="text-sm uppercase">{{ 'horse.location'|trans }}</span><span>{{ horse.location|trans }}</span> </li> {% endif %} {% if horse.name %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'horse.name'|trans }}</span> <span>{{ horse.name }}</span> </li> {% endif %} {% if horse.ueln %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'ueln'|trans }}</span> <span>{{ horse.ueln }}</span> </li> {% endif %} {% if horse.sex %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'horse.sex'|trans }}</span><span>{{ horse.sex|trans }}</span> </li> {% endif %} {% if horse.birthyear %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'birthyear'|trans }}</span><span>{{ horse.birthyear }}</span> </li> {% endif %} {% if horse.weight %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'weight'|trans }}</span><span>{{ horse.weight|number_format('0', ',', '.') }} kg</span> </li> {% endif %} {% if horse.originCountry %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'origin-country'|trans }}</span><span>{{ horse.originCountry|country_name }}</span> </li> {% endif %} {% if horse.exhibitor %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'exhibitor'|trans }}</span><span>{{ horse.exhibitor }}</span> </li> {% endif %} {% if horse.father %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'horse.father'|trans }}</span><span>{{ horse.father|trans }}</span> </li> {% endif %} {% if horse.mother %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'horse.mother'|trans }}</span><span>{{ horse.mother|trans }}</span> </li> {% endif %} {% if horse.height %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'horse.height'|trans }}</span><span>{{ (horse.height|trans) ~ ' cm' }}</span> </li> {% endif %} {% if horse.color %} <li class="contents"> <span class="text-sm uppercase text-neutral-800">{{ 'horse.color'|trans }}</span><span>{{ horse.color|trans }}</span> </li> {% endif %} </ul> {% endblock %}{% endembed %}