[rentals] Wrap long names in locker grid list

This commit is contained in:
Adam Goldsmith 2022-03-15 21:47:46 -04:00
parent 5ae60be3b4
commit 43d3f5dffa

View File

@ -60,11 +60,11 @@
aria-haspopup="true"
aria-expanded="false"
data-rented="{{ locker_form.instance.renter|yesno:"true,false" }}">
<h3 class="locker-address">{{ locker_form.instance.address }}</h3>
<div class="locker-status">
<h3 class="locker-address mb-0">{{ locker_form.instance.address }}</h3>
<div class="locker-status text-wrap">
{% if locker_form.instance.renter is not None %}
{% if perms.rentals.view_lockerinfo %}
{{ locker_form.instance.renter }}
{{ locker_form.instance.renter|truncatechars:15 }}
{% else %}
Occupied
{% endif %}