templates/network/horse/widgets/horse_widget_data.html.twig line 1

Open in your IDE?
  1. {% set title = 'info' %}
  2. {% embed 'network/widget/widget.html.twig' %}
  3.   {% block content %}
  4.     <ul class="grid gap-x-4 gap-y-1 sm:grid-cols-auto/fr">
  5.       {% if horse.isBlacktype %}
  6.         <li class="font-medium contents"
  7.           style="color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }}">
  8.           <span>{{ 'horse.blacktype'|trans }}</span> <span></span>
  9.         </li>
  10.       {% endif %}
  11.       {% if horse.coveringFee and horse.coveringFee.value and horse.sex == 'horse.sex.stallion' %}
  12.         <li class="font-medium contents"
  13.           style="color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }}">
  14.           <span class="text-sm uppercase">{{ 'coveringFee'|trans }}</span><span>
  15.             {{ horse.coveringFee|price_value }} {{ horse.coveringFee|price_unit }}
  16.             {{ horse.coveringFeeYear ? '(' ~ horse.coveringFeeYear ~ ')' : null }}
  17.           </span>
  18.         </li>
  19.       {% endif %}
  20.       {% if horse.price and horse.price.value %}
  21.         <li class="font-medium contents"
  22.           style="color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }}">
  23.           <span class="text-sm uppercase">{{ 'horse.price'|trans }}</span><span>{{
  24.               horse.price|trans
  25.             }}</span>
  26.         </li>
  27.       {% endif %}
  28.       {% if horse.location %}
  29.         <li class="font-medium contents"
  30.           style="color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }}">
  31.           <span class="text-sm uppercase">{{ 'horse.location'|trans }}</span><span>{{
  32.               horse.location|trans
  33.             }}</span>
  34.         </li>
  35.       {% endif %}
  36.       {% if horse.name %}
  37.         <li class="contents">
  38.           <span class="text-sm uppercase text-neutral-800">{{ 'horse.name'|trans }}</span>
  39.           <span>{{ horse.name }}</span>
  40.         </li>
  41.       {% endif %}
  42.       {% if horse.ueln %}
  43.         <li class="contents">
  44.           <span class="text-sm uppercase text-neutral-800">{{ 'ueln'|trans }}</span>
  45.           <span>{{ horse.ueln }}</span>
  46.         </li>
  47.       {% endif %}
  48.       {% if horse.sex %}
  49.         <li class="contents">
  50.           <span class="text-sm uppercase text-neutral-800">{{ 'horse.sex'|trans }}</span><span>{{
  51.               horse.sex|trans
  52.             }}</span>
  53.         </li>
  54.       {% endif %}
  55.       {% if horse.birthyear %}
  56.         <li class="contents">
  57.           <span class="text-sm uppercase text-neutral-800">{{ 'birthyear'|trans }}</span><span>{{
  58.               horse.birthyear
  59.             }}</span>
  60.         </li>
  61.       {% endif %}
  62.       {% if horse.weight %}
  63.         <li class="contents">
  64.           <span class="text-sm uppercase text-neutral-800">{{ 'weight'|trans }}</span><span>{{
  65.               horse.weight|number_format('0', ',', '.')
  66.             }} kg</span>
  67.         </li>
  68.       {% endif %}
  69.       {% if horse.originCountry %}
  70.         <li class="contents">
  71.           <span class="text-sm uppercase text-neutral-800">{{ 'origin-country'|trans }}</span><span>{{
  72.               horse.originCountry|country_name
  73.             }}</span>
  74.         </li>
  75.       {% endif %}
  76.       {% if horse.exhibitor %}
  77.         <li class="contents">
  78.           <span class="text-sm uppercase text-neutral-800">{{ 'exhibitor'|trans }}</span><span>{{
  79.               horse.exhibitor
  80.             }}</span>
  81.         </li>
  82.       {% endif %}
  83.       {% if horse.father %}
  84.         <li class="contents">
  85.           <span class="text-sm uppercase text-neutral-800">{{ 'horse.father'|trans }}</span><span>{{
  86.               horse.father|trans
  87.             }}</span>
  88.         </li>
  89.       {% endif %}
  90.       {% if horse.mother %}
  91.         <li class="contents">
  92.           <span class="text-sm uppercase text-neutral-800">{{ 'horse.mother'|trans }}</span><span>{{
  93.               horse.mother|trans
  94.             }}</span>
  95.         </li>
  96.       {% endif %}
  97.       {% if horse.height %}
  98.         <li class="contents">
  99.           <span class="text-sm uppercase text-neutral-800">{{ 'horse.height'|trans }}</span><span>{{ (horse.height|trans)
  100.               ~ ' cm' }}</span>
  101.         </li>
  102.       {% endif %}
  103.       {% if horse.color %}
  104.         <li class="contents">
  105.           <span class="text-sm uppercase text-neutral-800">{{ 'horse.color'|trans }}</span><span>{{
  106.               horse.color|trans
  107.             }}</span>
  108.         </li>
  109.       {% endif %}
  110.     </ul>
  111.   {% endblock %}
  112. {% endembed %}