templates\parts\_c-card.html.twig line 1

Open in your IDE?
  1. {#{{ dump(cat) }} #}    
  2.     
  3.             <a href="{{path('courseDetail',{'courseCode':cat["courseCode"]})}}" class="c-card" id="Code{{cat.courseCode|upper}}">
  4.                 <span class="c-card__header">
  5.                   {% if cat['image-path'] is defined and cat['image-path'] is not null %}
  6.                   <span class="c-card__icon"> 
  7.                      {% include 'parts/_img.html.twig' with {'imageName': cat['image-path'], 'imageAlt':cat['alt-text'], 'imagePath':''} %}
  8.                   </span>
  9.                   {% endif %}
  10.                   <span class="c-card__title" style="color:{{cat["courselist_title_hex_color"]}}">{{ cat["courseTitle"] }}</span>
  11.                   <span class="c-card__id">Course code: <span class="title">{{ cat["courseCode"]}}</span></span>                  
  12.                   {% if cat['courseInstanceStopPress'] is not null %}
  13.                     <div class="alert {{cat["courseInstanceStopPress-alertClass"]}}">
  14.                         {{ cat["courseInstanceStopPress"]|raw}}
  15.                     </div>
  16.                   {% endif %}
  17.                 </span>
  18.                 
  19.                 <span class="c-card__info" style="color:{{cat["courselist_info_hex_color"]}}; font-weight:{{cat["courselist_info_font_weight"]}}">                    
  20.                     <span class="c-card__startDate" style="color:{{cat["courselist_startdate_hex_color"]}}">{{ cat["StartDate"]}}</span>
  21.                     <span class="c-card__times">Times: <span class="title">{{ cat["times"]}}</span></span>
  22.                     <span class="c-card__duration">Duration: <span class="title">{{ cat["duration"]}}</span></span>
  23.                     <span class="c-card__locationLabel">                        
  24.                         Location: <span class="title">{{ cat["locationLabel"]}}</span>                        
  25.                     </span>                    
  26.                     <span class="c-card__fees">Fee: <span class="title">{{ cat["fees"]}}</span> </span>
  27.                     {% if cat['tutor'] is not null %}
  28.                         <span class="c-card__courseInstanceStopPress">Tutor: <span class="title">{{ cat["tutor"]}}</span></span>
  29.                     {% endif %}
  30.                     <span class="c-card__availabiity">Availability: <span class="title">{{ cat["availabiity"]| capitalize}}</span></span>                    
  31.                 </span>
  32.                 
  33.                 
  34.                     
  35.                 
  36.                 {#<span class="c-card__badges">
  37.                   <span class="c-card__badge c-card__badge--bordered">{{ cat["countOfAvailableCourses"] }} available</span>
  38.                 </span>#}
  39.                 {#<span class="c-card__progress js-progress" data-progress="{{course.progress}}">
  40.                   <span class="c-card__progress-header">
  41.                     <span class="c-card__status">{{ course.status }}</span>
  42.                     <span class="c-card__value">{{ course.progress }}%</span>
  43.                   </span>
  44.                   <span class="c-card__progress-container">
  45.                     <span class="c-card__progress-bar js-progress-bar" style="transform: translateX(-100%);"></span>
  46.                   </span>
  47.                 </span>#}
  48.         </a>