From bc71549d12e2e365a93ff32def092b6879672210 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Fri, 15 Mar 2024 10:33:39 -0700 Subject: [PATCH] added a conditional to limit only 5 rows to display --- app/templates/views/check/preview.html | 58 +++++++++++++------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/app/templates/views/check/preview.html b/app/templates/views/check/preview.html index ea7978ebe..ebf2ec8c2 100644 --- a/app/templates/views/check/preview.html +++ b/app/templates/views/check/preview.html @@ -57,35 +57,37 @@ {% for item in recipients.displayed_rows %} - - {% for column in recipients.column_headers %} - -
- {% set column_data = item[column].data or '' %} - {% if column_data is iterable and column_data is not string %} - - {% else %} - {{ column_data }} - {% endif %} -
- - {% endfor %} - {% if item[None].data %} - {% for column in item[None].data %} - -
- {{ column }} -
- - {% endfor %} + {% if loop.index <= 5 %} + + {% for column in recipients.column_headers %} + +
+ {% set column_data = item[column].data or '' %} + {% if column_data is iterable and column_data is not string %} + + {% else %} + {{ column_data }} + {% endif %} +
+ + {% endfor %} + {% if item[None].data %} + {% for column in item[None].data %} + +
+ {{ column }} +
+ + {% endfor %} + {% endif %} + {% endif %} - {% endfor %}