templates/course/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3. <style>
  4. /* HIDE RADIO */
  5. [type=radio] { 
  6.   position: absolute;
  7.   opacity: 0;
  8.   width: 0;
  9.   height: 0;
  10. }
  11. /* IMAGE STYLES */
  12. [type=radio] + img {
  13.   cursor: pointer;
  14. }
  15. /* CHECKED STYLES */
  16. [type=radio]:checked + img {
  17.   outline: 2px solid #198754;
  18. }
  19. html {
  20.   scroll-behavior: smooth;
  21. }
  22. </style>
  23.     
  24.                     
  25.                             
  26.                             {% embed "nav.html.twig" %}{% endembed %}
  27.                             
  28.                         
  29.                         <div class="content" style="text-align:center; padding-top: 3em;"  >
  30.                             
  31.                             <label for="placeSelecter" style="{{color}}; display:none" >Ort</label>
  32.                             <select id="placeSelecter" style="display:none" onchange="loadContent('{{url}}')">
  33.                                 {% if placeid is defined %}
  34.                                 <option value="">Bitte w&auml;hlen</option>
  35.                                 {% else %}
  36.                                 <option value="" selected>Bitte w&auml;hlen</option>
  37.                                 {% endif %}
  38.                                 {% for k,v in places %}
  39.                                     {% set replaces = {
  40.                                         ' - ' : '',
  41.                                         (k)  : ''
  42.                                     } %}
  43.                                     {% if placeid is defined %}
  44.                                     <option value="{{ k }}"{% if placeid == k %} selected="selected" {% endif %}  >
  45.                                     {{ v|replace(replaces)|trim }}
  46.                                     </option>
  47.                                     {% else %}
  48.                                     <option value="{{ k }}"  >
  49.                                     {{ v|replace(replaces)|trim }}
  50.                                     </option>
  51.                                     {% endif %}
  52.                                     
  53.                                 {% endfor %}
  54.                                 
  55.                             </select>        
  56.                         
  57. <style>
  58. .labl {
  59.     /*display : block;*/
  60.     width: 100%;
  61. }
  62. .labl > input{ /* HIDE RADIO */
  63.     visibility: hidden; /* Makes input not-clickable */
  64.     position: absolute; /* Remove input from document flow */
  65. }
  66. .labl > input + div{ /* DIV STYLES */
  67.     cursor:pointer;
  68.     border:2px solid transparent;
  69. }
  70. </style>
  71. <div class="service">
  72.             <div class="container">
  73.                 <div class="section-header text-center wow zoomIn" data-wow-delay="0.1s">
  74.                     <!--<p>What we do</p>-->
  75.                     <h2>Kategorien</h2>
  76.                 </div>
  77.                 <div class="row">
  78. {% set i = 0  %}
  79.                             {% if placeid is defined  %}
  80.                                 {% for row in categories %}
  81.                                 
  82.                                 {% if allowedCat[row.id] == '1' %}
  83.                                         
  84.                                             <div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.0s">
  85.                                                 <label id="category{{i}}label" class="labl">
  86.                                                         <input type="radio" name="category" id="category{{i}}" class="categoryImg" value="{{row.id}}"  onchange="loadContent('{{url}}',0)">
  87.                                                 <div class="service-item">
  88.                                                     <div class="service-icon">
  89.                                                     
  90.                                                         <!--<i class="flaticon-workout"></i>-->
  91.                                                         {% if catimg[row.id] is defined %}
  92.                                                         <img src="{{ url }}{{ catimg[row.Id] }}" width="50" height="50" style="z-index:9999" />
  93.                                                         {% endif %}
  94.                                                     </div>
  95.                                                     <h3>{{ row.ccname }}</h3>
  96.                                                     <p>
  97.                                                         &nbsp;
  98.                                                     </p>
  99.                                                 </div>
  100.                                                     </label>
  101.                                             </div>
  102.                                         
  103.                                         <!--
  104.                                         <div class="col-sm" align="left"  >
  105.                                             <div style="max-width: 200px; background-color: {{ mainboxColor }}" >
  106.                                                 {% if catimg[row.id] is defined %}
  107.                                                     
  108.                                                     <label id="category{{i}}label" style="display:contents">
  109.                                                         <input type="radio" name="category" id="category{{i}}" class="categoryImg" value="{{row.id}}"  onchange="loadContent('{{url}}')">
  110.                                                         <img class="imgWithHighlightBorder" width="200px" height="200px" style="cursor:pointer" src="{{ url }}{{ catimg[row.Id] }}">
  111.                                                     </label>
  112.                                                 {% else  %}
  113.                                                 IMAGE NOT FOUND
  114.                                                 {% endif %}
  115.                                                 <span style="{{color}};"   >{{ row.ccname }}    </span>
  116.                                                 <br />
  117.                                             </div>
  118.                                         </div>-->
  119.                                         
  120.                                         
  121.                                 {% set i = i + 1 %}    
  122.                                 {% endif %}
  123.                                 {% endfor %}
  124.                             {% endif %}
  125.                         
  126.                             <hr style="margin-top: 1em"></hr>
  127.                         
  128.                             <label style="{{color}}"><h3 style="{{color}};" >{% if company == 'KVO' %}Anwendungen und Behandlungen{% else %}Kurse{% endif %}</h3></label>
  129.                     </div>
  130.                 </div>
  131.             </div>
  132.                             <div id="content" class="container" ></div>
  133.                         </div>
  134.                     </section>
  135.                 </div>
  136.             </section>
  137.     <script>
  138.     $(function () 
  139.     {
  140.         loadContent('{{ url }}');
  141.     });
  142.     </script>
  143.     
  144.  {% block javascripts %}
  145.     {{ parent() }}
  146.     <script src="{{ asset('js/homepage.js') }}"></script>
  147.     {% endblock %}
  148. {% endblock %}