oacpl/charter_members/templates/all.html

32 lines
1.5 KiB
HTML
Raw Normal View History

2018-01-14 17:55:35 -05:00
{% extends 'base.html' %}
{% block body %}
<div class="container-fluid bg-dark-primary py-3">
<div class="container">
2018-01-25 00:18:13 -05:00
{% for region in region %}
2018-01-14 17:55:35 -05:00
<div class="row bg-white mb-5">
<div class="col-12 pt-3">
2018-01-25 00:18:13 -05:00
<h2 class="text-dark-primary">{{ region }}</h2>
2018-01-14 17:55:35 -05:00
<hr style="border-top: 1px solid rgba(0,0,0,0.2) !important">
<div class="row">
{% for attorney in attorneys %}
2018-01-25 00:18:13 -05:00
{% if attorney.region == region %}
2018-01-14 17:55:35 -05:00
<a class="col-3 text-center pt-5" href="{% url 'attorney' attorney.id %}">
<div>
<img class="pb-3" src="/media/{{ attorney.image }}"
style="width: auto; max-width: 100%; height: 200px"/>
2018-01-25 00:18:13 -05:00
<h5 class="text-dark-primary">{{ attorney.first_name }} {{ attorney.last_name }}</h5>
2018-01-14 17:55:35 -05:00
<span class="text-light-primary">{{ attorney.position }}</span>
<hr>
</div>
</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}