Skip to content

Commit

Permalink
remove seller's name from invoice for non-admins
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Oct 18, 2024
1 parent 928a0e7 commit 2c1b4d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion auctions/templates/invoice.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ <h3>Lots purchased</h3>
{% if auction.multi_location %}
<th scope="col">Location</th>
{% endif %}
{% if is_admin %}
<th scope="col">Seller</th>
{% endif %}
<th scope="col">Price</th>
</tr>
</thead>
Expand Down Expand Up @@ -342,8 +344,9 @@ <h3>Lots purchased</h3>
{% if auction.multi_location %}
<td>{{ lot.location }}</td>
{% endif %}
{% if is_admin %}
<td>
{% if show_links and is_admin %}
{% if show_links %}
<a href="#" hx-get="/api/auctiontos/{{lot.auctiontos_seller.pk}}"
hx-target="#modals-here"
hx-trigger="click">
Expand All @@ -353,6 +356,7 @@ <h3>Lots purchased</h3>
{{ lot.seller_name }}
{% endif %}
</td>
{% endif %}
<td>
${{ lot.final_price|floatformat:2 }}
</td>
Expand Down

0 comments on commit 2c1b4d2

Please sign in to comment.