{% if lines is defined and lines is not empty and limit is defined and ((type is defined and type != 'stoparea') or type is not defined) %}{% set hasLine = false %}{% for line in lines %}{% if (line['line'] is defined and line['line']|length > limit) %}{% set hasLine = true %}{% endif %}{% endfor %}{% if hasLine %}<h3 class="is-Widget-H3">{{ 'schedule.all_stoparea_lines'|trans }}</h3><div class="is-Schedule-StopPoint-Lines {% if groupBySubNetworks is defined and true == groupBySubNetworks %}is-GroupBySubNetworks{% endif %}">{% for line in lines %}{% if groupBySubNetworks is defined and true == groupBySubNetworks %}{% if (line['subNetwork'] is defined and line['subNetwork'] is not empty) %}<div class="is-Subnetwork-StopAreaLines"><h4 class="is-Widget-H4">{{ line['subNetwork']['name'] }}</h4>{% endif %}{% for lineInfos in line.line %}<div class="is-row"><div class="is-col-xs-12 is-col-sm-12 is-col-md-12 is-col-lg-12 is-Schedule-StopPoint-Line"><a data-toggle="is-tooltip" title="{{ 'schedule.see_line_timesheet_new_format'|trans({ 'mode': lineInfos.modeText, 'lineIdent': lineInfos.sName })|raw }}"class="is-Schedule-StopPoint-Line-Link is-Line is-line-directions-switch"data-line-id="{{ lineInfos.id }}"data-line-short-name="{{ lineInfos.sName }}"data-line-sub-network-name="{{ lineInfos.subNetwork.name }}"data-mode-text="{{ lineInfos.modeText }}"data-direction="OUTWARD">{% include "modules/search-widget/schedule/includes/line.html.twig" with { 'line': lineInfos} %} {{ lineInfos.lName}}</a></div></div>{% endfor %}{% if (line['subNetwork'] is defined and line['subNetwork'] is not empty) %}</div>{% endif %}{% else %}{% set line = line.line %}{% if loop.index % 3 == 1 %}<div class="is-row">{% endif %}<div class="is-col-xs-4 is-col-sm-4 is-col-md-4 is-col-lg-4 is-Schedule-StopPoint-Line"><a data-toggle="is-tooltip" title="{{ 'schedule.see_line_timesheet_new_format'|trans({ 'mode': line.modeText, 'lineIdent': line.sName })|raw }}"class="is-Schedule-StopPoint-Line-Link is-Line is-line-directions-switch"data-line-id="{{ line.id }}"data-line-short-name="{{ line.sName }}"data-line-sub-network-name="{{ line.subNetwork.name }}"data-mode-text="{{ line.modeText }}"data-direction="OUTWARD">{% include "modules/search-widget/schedule/includes/line.html.twig" with { 'line': line} %} {{ line.subNetwork.name }}</a></div>{% if loop.index % 3 == 0 or loop.last %}</div>{% endif %}{% endif %}{% endfor %}</div>{% endif %}{% endif %}{% if stopAreaLines is defined and stopAreaLines is not empty and limit is defined or (stopArea is defined and stopArea is not empty and stopPoints is not empty and lines is not empty) %}{% set hasLine = false %}{% for stopAreaLine in stopAreaLines['0'] %}{% if (stopAreaLine['line'] is defined and stopAreaLine['line']|length > limit) %}{% set hasLine = true %}{% endif %}{% endfor %}{% if hasLine %}<h3 class="is-Widget-H3">{{ 'stop_point.all_stoparea_lines'|trans }}</h3><div class="is-Schedule-StopPoint-Lines {% if groupBySubNetworks is defined and true == groupBySubNetworks %}is-GroupBySubNetworks{% endif %}">{% for stopAreaLine in stopAreaLines['0'] %}{% if groupBySubNetworks is defined and true == groupBySubNetworks %}{% if (stopAreaLine['subNetwork'] is defined and stopAreaLine['subNetwork'] is not empty) %}<div class="is-Subnetwork-StopAreaLines"><h4 class="is-Widget-H4">{{ stopAreaLine['subNetwork']['name'] }}</h4>{% endif %}{% for line in stopAreaLine['line'] %}<div class="is-row"><div class="is-col-xs-12 is-col-sm-12 is-col-md-12 is-col-lg-12 is-Schedule-StopPoint-Line">{% include "modules/search-widget/schedule/includes/stopAreaLine.html.twig" with { 'stopAreaLine': line, 'groupBySubNetworks': groupBySubNetworks } %}</div></div>{% endfor %}{% if (stopAreaLine['subNetwork'] is defined and stopAreaLine['subNetwork'] is not empty) %}</div>{% endif %}{% else %}{% if loop.index % 3 == 1 %}<div class="is-row">{% endif %}<div class="is-col-xs-4 is-col-sm-4 is-col-md-4 is-col-lg-4 is-Schedule-StopPoint-Line">{% include "modules/search-widget/schedule/includes/stopAreaLine.html.twig" with { 'stopAreaLine': stopAreaLine } %}</div>{% if loop.index % 3 == 0 or loop.last %}</div>{% endif %}{% endif %}{% endfor %}</div>{% endif %}{% endif %}