Skip to content

Commit

Permalink
Added an if statement for two icons based on resource type (invoice/c…
Browse files Browse the repository at this point in the history
…lient)

Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Nov 26, 2024
1 parent 48c24da commit c49b492
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/templates/base/topbar/_search_dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
{% for resource in resource_list %}
<div class="group flex flex-row gap-4 p-4 border border-base-300 rounded-lg transition-all duration-300 hover:shadow-md overflow-hidden">
<div class="flex items-center justify-center w-14 h-14 bg-base-200 rounded-lg text-primary">
<i class="fa fa-file-invoice text-3xl"></i>
{% if resource_type == "client" %}
<i class="fa fa-user text-3xl"></i>
{% elif resource_type == "invoice" %}
<i class="fa fa-file-invoice text-3xl"></i>
{% endif %}
</div>
<div class="flex-1">
<a class="text-lg font-medium link link-primary link-hover"
Expand Down

0 comments on commit c49b492

Please sign in to comment.