First pass at mobile-ising the generic list

This commit is contained in:
2020-03-25 00:51:03 +00:00
parent 0271840f4d
commit de210caa36
4 changed files with 180 additions and 45 deletions

View File

@@ -0,0 +1,19 @@
<div class="card">
{% for object in object_list %}
<div class="card-header">
<a href="{% url detail object.pk %}">{{ object.pk }} | {{ object.name }}</a>
</div>
<div class="card-body">
<ul>
<li><strong>Email:</strong> {{ object.email }}</li>
<li><strong>Phone:</strong> {% if object.phone %}<a href="tel:{{ object.phone }}">{%endif%}{{ object.phone }}{% if object.phone %}</a>{%endif%}</li>
<li><strong>Notes:</strong>{{ object.notes|yesno|capfirst }}</li>
{% if union_account %}
<li>strong>Union Account:</strong> {{ object.union_account|yesno|capfirst }}</li>
{% endif %}
</ul>
<a href="{% url edit object.pk %}" class="btn btn-warning btn-sm"><i
class="fas fa-edit"></i> Edit</a>
</div>
{% endfor %}
</div>