From 488d5dc8bf7ae80cdd7d2b20143dcfe6ee32f34b Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Tue, 4 Oct 2022 10:58:10 -0400
Subject: [PATCH] ISTWCMS-5789: fixing multi tab list for more than 3 tabs

---
 .../multi-type-list/multi-type-list.twig      | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/src/patterns/04-components/multi-type-list/multi-type-list.twig b/src/patterns/04-components/multi-type-list/multi-type-list.twig
index 0a6ed6b9..103891c4 100644
--- a/src/patterns/04-components/multi-type-list/multi-type-list.twig
+++ b/src/patterns/04-components/multi-type-list/multi-type-list.twig
@@ -65,6 +65,41 @@
             </div>
           {% endif %}
         {% endblock %}
+
+      {% elseif loop.parent.loop.index == 4 %}
+        {% block content_area_4 %}
+          {% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with {
+            'type': type,
+            'lists': lists,
+            'view_all': view_all,
+          } %}
+          {% if view_all %}
+            <div class="uw-multi-type-list__button">
+              {% include '@components/button/button.twig' with {
+                'url': view_all[type].url,
+                'text': view_all[type].text,
+              } %}
+            </div>
+          {% endif %}
+        {% endblock %}
+
+      {% elseif loop.parent.loop.index == 5 %}
+        {% block content_area_5 %}
+          {% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with {
+            'type': type,
+            'lists': lists,
+            'view_all': view_all,
+          } %}
+          {% if view_all %}
+            <div class="uw-multi-type-list__button">
+              {% include '@components/button/button.twig' with {
+                'url': view_all[type].url,
+                'text': view_all[type].text,
+              } %}
+            </div>
+          {% endif %}
+        {% endblock %}
+
       {% endif %}
 
     {% endfor %}
-- 
GitLab