templates/editions/editionabout.html.twig line 1

Open in your IDE?
  1.  {%if bfedition.description.hasimage == true %}
  2.  <div class="fancy-gallery my-5">
  3.      <div class="row justify-content-center">
  4.          {%if bfedition.description.image1 != null %}
  5.          <a href="{{ vich_uploader_asset(bfedition.description, 'image1File') }}" class="mb-4 col-6 col-sm-4 img-fluid" data-fancybox="images">
  6.              <img src="{{ vich_uploader_asset(bfedition.description, 'image1File') }}" alt="" />
  7.          </a>
  8.          {%endif%}
  9.          {%if bfedition.description.image2 != null %}
  10.          <a href="{{ vich_uploader_asset(bfedition.description, 'image2File') }}" class="mb-4 col-6 col-sm-4 img-fluid" data-fancybox="images">
  11.              <img src="{{ vich_uploader_asset(bfedition.description, 'image2File') }}" alt="" />
  12.          </a>
  13.          {%endif%}
  14.          {%if bfedition.description.image3 != null %}
  15.          <a href="{{ vich_uploader_asset(bfedition.description, 'image3File') }}" class="mb-4 col-6 col-sm-4 img-fluid" data-fancybox="images">
  16.              <img src="{{ vich_uploader_asset(bfedition.description, 'image3File') }}" alt="" />
  17.          </a>
  18.          {%endif%}
  19.      </div>
  20.  </div>
  21.  {%endif%}
  22.  {%if bfedition.haschallengeeditionsactive == true %}
  23.  <div class="mt-2">
  24.      {% for bfchallengeedition in bfedition.challengeeditionsactive %}
  25.      <a href="{{ path('challenge_view', {'idedition':bfchallengeedition.id}, relative = false) }}">
  26.          <span class="badge badge-primary mr-1" style="background-color:{{bfchallengeedition.description.labelcolor}}">
  27.              <span class="font-weight-normal font-xs">{{bfchallengeedition.description.labeltext}}</span>
  28.          </span>
  29.          &nbsp;{{bfchallengeedition.challenge.name}} - {{bfchallengeedition.name}}
  30.      </a><br />
  31.      {%endfor%}
  32.  </div>
  33.  {%endif%}
  34.  <div class="mt-4">
  35.      {{bfedition.description.longdescription|nl2br}}
  36.  </div>
  37.  <div class="row mt-5">
  38.      <div class="col">
  39.          <div class="card card-body bg-soft border-light p-2">
  40.              <div class="card-group bg-soft">
  41.                  {%if bfedition.countdays != null%}
  42.                  <div class="card mb-0">
  43.                      <div class="card-body text-center px-0 px-md-3">
  44.                          <div class="icon icon-secondary">
  45.                              <span class="fas fa-calendar-week"></span>
  46.                          </div>
  47.                          <!-- Heading -->
  48.                          <div class="h5 mt-3 mb-0">
  49.                              <span class="counter text-dark"> {{bfedition.countdays}} </span>
  50.                          </div>
  51.                          <span class="text-muted h6 font-weight-normal mb-0">
  52.                              {%if bfedition.countdays>1%}
  53.                              jours
  54.                              {%else%}
  55.                              jour
  56.                              {%endif%}
  57.                              de compétition
  58.                          </span>
  59.                      </div>
  60.                  </div>
  61.                  {%endif%}
  62.                  {%if bfedition.counttournois != null%}
  63.                  <div class="card mb-0 border-left">
  64.                      <div class="card-body text-center px-0 px-md-3">
  65.                          <div class="icon icon-secondary">
  66.                              <span class="fas fa-trophy"></span>
  67.                          </div>
  68.                          <!-- Heading -->
  69.                          <div class="h5 mt-3 mb-0">
  70.                              <span class="counter text-dark">{{bfedition.counttournois}} </span>
  71.                          </div>
  72.                          <span class="text-muted h6 font-weight-normal mb-0">
  73.                              {%if bfedition.counttournois>1%}
  74.                              compétitions
  75.                              {%else%}
  76.                              compétition
  77.                              {%endif%}
  78.                          </span>
  79.                      </div>
  80.                  </div>
  81.                  {%endif%}
  82.                  {%if bfedition.description.participantnumber!= null%}
  83.                  <div class="card mb-0 border-left">
  84.                      <div class="card-body text-center px-0 px-md-3">
  85.                          <div class="icon icon-secondary">
  86.                              <span class="fas fa-users"></span>
  87.                          </div>
  88.                          <!-- Heading -->
  89.                          <div class="h5 mt-3 mb-0">
  90.                              <span class="counter text-dark mr-2">{{bfedition.description.participantnumber}}</span>+
  91.                          </div>
  92.                          <span class="text-muted h6 font-weight-normal mb-0">
  93.                              compétiteurs attendus
  94.                          </span>
  95.                      </div>
  96.                  </div>
  97.                  {%endif%}
  98.                  {%if bfedition.description.awards!= null%}
  99.                  <div class="card mb-0 border-left">
  100.                      <div class="card-body text-center px-0 px-md-3">
  101.                          <div class="icon icon-secondary">
  102.                              <span class="fas fa-award mr-2"></span>
  103.                          </div>
  104.                          <!-- Heading -->
  105.                          <div class="h5 mt-3 mb-0">
  106.                              <span class="counter text-dark">{{bfedition.description.awards}}</span>
  107.                          </div>
  108.                          <span class="text-muted h6 font-weight-normal mb-0">
  109.                              € à gagner
  110.                          </span>
  111.                      </div>
  112.                  </div>
  113.                  {%endif%}
  114.              </div>
  115.          </div>
  116.      </div>
  117.  </div>
  118.  {%for bftournoi in bfedition.tournois%}
  119.  <div class="row mt-5">
  120.      <div class="card card-sm card-body border-light">
  121.          <div class="mb-2">
  122.              <span class="icon-title h6 mb-0 font-weight-bold"><i class="fas fa-trophy mr-3"></i>{{bftournoi.name}} : {{bftournoi.startdate|date("d/m")}} - {{bftournoi.enddate|date("d/m")}}</span>
  123.          </div>
  124.          <div>
  125.              {%if bftournoi.description.extra != null %}
  126.              <h6><u>Le plus:</u> {{bftournoi.description.extra}} </h6>
  127.              {%endif%}
  128.              <p>
  129.                  {{bftournoi.description.longdescription|nl2br}}
  130.              </p>
  131.              <h6><u>Séances:</u></h6>
  132.              <p>
  133.                  {%for bfseance in bftournoi.seances%}
  134.                  <i class="fas fa-calendar-day mr-1"></i>{{bfseance.name}}: {{bfseance.startdate|date("d/m H:i")}} <br />
  135.                  {%endfor%}
  136.              </p>
  137.              {%if bftournoi.description.price != null %}
  138.              <h6><u>Tarif:</u> <i class="fas fa-euro-sign"></i> {{bftournoi.description.price}}</h6>
  139.              {%endif%}
  140.          </div>
  141.      </div>
  142.  </div>
  143.  {%endfor%}
  144.  {%if bfedition.description.website != null %}
  145.  <div class="row mt-3 justify-content-center">
  146.      <p class="text-center">
  147.          Plus d'informations : <a href="{{bfedition.description.website}}" target="_blank">{{bfedition.description.website}}</a>
  148.      </p>
  149.  </div>
  150.  {%endif%}