Browse Source

Melhora o front-end da pesquisa textual

pull/980/head
Eduardo Calil 9 years ago
committed by Edward Ribeiro
parent
commit
89c1d7c4af
  1. 20
      sapl/templates/search/search.html

20
sapl/templates/search/search.html

@ -37,24 +37,36 @@
</div> </div>
</br>
{% if query %} {% if query %}
<h3>Resultados</h3> <table class="table table-striped table-bordered">
<thead class="thead-default">
<tr><td><h3>Resultados</h3></td></tr>
</thead>
{% for result in page.object_list %} {% for result in page.object_list %}
<tr>
<td>
{% if result.object|search_get_model == 'm' %} {% if result.object|search_get_model == 'm' %}
<p> <p>
<a href="{% url 'sapl.materia:materialegislativa_detail' result.object.pk %}">{{ result.object }}</a> <strong>Matéria Legislativa: </strong> <a href="{% url 'sapl.materia:materialegislativa_detail' result.object.pk %}">{{ result.object }}</a></br>
<strong>Texto Original:</strong> <a href="{{result.object.arquivo.url}}"> Clique aqui </a></br>
</p> </p>
{% elif result.object|search_get_model == 'd' %} {% elif result.object|search_get_model == 'd' %}
<p> <p>
<a href="{% url 'sapl.materia:documentoacessorio_detail' result.object.pk %}">{{ result.object }}</a> <strong> Documento Acessório: </strong><a href="{% url 'sapl.materia:documentoacessorio_detail' result.object.pk %}">{{ result.object }}</a></br>
<strong>Texto Original:</strong> <a href="{{result.object.arquivo.url}}"> Clique aqui </a></br>
</p> </p>
{% endif %} {% endif %}
</td>
</tr>
{% empty %} {% empty %}
<p>No results found.</p> <h3> Nenhum resultado encontrado! </h3>
{% endfor %} {% endfor %}
</table>
{% if page.has_previous or page.has_next %} {% if page.has_previous or page.has_next %}
<div> <div>

Loading…
Cancel
Save