From d09eec0ce4635ba4a9715b29e6330ddbc28c8a73 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Sat, 4 May 2024 07:31:39 +0200
Subject: [PATCH] Add icons to list and grid buttons. Rename grid to table.
 (#3901)

Fixes #3886
---
 hypha/apply/funds/templates/funds/submissions.html | 3 ++-
 hypha/apply/funds/templates/submissions/all.html   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/hypha/apply/funds/templates/funds/submissions.html b/hypha/apply/funds/templates/funds/submissions.html
index ba0d3bcac..8c7dc6bfe 100644
--- a/hypha/apply/funds/templates/funds/submissions.html
+++ b/hypha/apply/funds/templates/funds/submissions.html
@@ -17,7 +17,8 @@
                hx-boost="true"
                href="{% url 'apply:submissions:list-alt' %}"
             >
-                {% trans "Switch to list view" %}
+                {% heroicon_mini "queue-list" aria_hidden="true" size=16 class="inline align-text-bottom" %}
+                {% trans "List view" %}
             </a>
         {% endslot %}
     {% endadminbar %}
diff --git a/hypha/apply/funds/templates/submissions/all.html b/hypha/apply/funds/templates/submissions/all.html
index 5e7c71aca..317506497 100644
--- a/hypha/apply/funds/templates/submissions/all.html
+++ b/hypha/apply/funds/templates/submissions/all.html
@@ -17,7 +17,8 @@
             <a class="tab__item tab__item--right"
                href="{% url 'apply:submissions:list' %}"
             >
-                {% trans "Switch to grid view" %}
+                {% heroicon_mini "table-cells" aria_hidden="true" size=16 class="inline align-text-bottom" %}
+                {% trans "Table view" %}
             </a>
         {% endslot %}
     {% endadminbar %}
-- 
GitLab