2017-09-14 13:52:39 -04:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block body %}
|
2017-09-16 18:45:21 -04:00
|
|
|
<div class="container-fluid" style="background-color: #001f2f">
|
2017-09-14 13:52:39 -04:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-09-16 18:45:21 -04:00
|
|
|
<div class="col-md-3 bg-dark-primary">
|
|
|
|
<h4 class="mt-3 pl-1 text-white">Filters:</h4>
|
|
|
|
<form>
|
|
|
|
<div class="mt-2">
|
|
|
|
<h5 for="filter" class="text-white mb-0 pl-1">Name</h5>
|
2017-10-02 15:41:05 -04:00
|
|
|
<input class="form-control" name="name" value="{{ name }}">
|
2017-09-16 18:45:21 -04:00
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
<h5 for="filter" class="text-white mb-0 pl-1">Institute</h5>
|
|
|
|
<select id="filter" class="form-control" name="institute">
|
|
|
|
<option selected></option>
|
2017-10-02 15:41:05 -04:00
|
|
|
{% for i in institutes %}
|
|
|
|
<option {% if i == institute %}selected{% endif %}>{{ i }}</option>
|
2017-09-16 18:45:21 -04:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
<h5 for="filter" class="text-white mb-0 pl-1">Areas of Expertise</h5>
|
2017-10-02 15:41:05 -04:00
|
|
|
<select id="filter" class="form-control" name="expertise">
|
2017-09-16 18:45:21 -04:00
|
|
|
<option selected></option>
|
2017-10-02 15:41:05 -04:00
|
|
|
{% for a in aoe %}
|
|
|
|
<option {% if a.field == expertise %}selected{% endif %}>{{ a.field }}</option>
|
2017-09-16 18:45:21 -04:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
2017-09-16 18:46:09 -04:00
|
|
|
<button class="btn btn-primary float-right my-3">Search</button>
|
2017-09-16 18:45:21 -04:00
|
|
|
</form>
|
2017-09-14 13:52:39 -04:00
|
|
|
</div>
|
2017-10-02 15:41:05 -04:00
|
|
|
<div class="col-md-9 bg-light-blue">
|
|
|
|
<div class="bg-white my-3">
|
|
|
|
{% for expert in experts %}
|
|
|
|
<div class=" p-3 border-bottom-0 border-left-0 border-right-0 {% if not forloop.counter0 %}border-top-0{% endif %}" style="border: 1px solid rgba(0, 0, 0, 0.2);">
|
|
|
|
<a href="{% url 'expert' expert.id %}">{{ expert.name }}</a>
|
|
|
|
<br>
|
|
|
|
{% if expert.institute %}
|
|
|
|
<i class="fa fa-institution"></i> {{ expert.institute }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted"><i class="fa fa-institution"></i> No Institute</span>
|
|
|
|
{% endif %}
|
|
|
|
<br>
|
|
|
|
{% for e in expert.expertise.all %}
|
|
|
|
<span class="badge badge-primary">{{ e.field }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-14 13:52:39 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|