|
|
@ -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 %} |
|
|
{% if result.object|search_get_model == 'm' %} |
|
|
<tr> |
|
|
<p> |
|
|
<td> |
|
|
<a href="{% url 'sapl.materia:materialegislativa_detail' result.object.pk %}">{{ result.object }}</a> |
|
|
{% if result.object|search_get_model == 'm' %} |
|
|
</p> |
|
|
<p> |
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
{% 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> |
|
|
</p> |
|
|
<strong>Texto Original:</strong> <a href="{{result.object.arquivo.url}}"> Clique aqui </a></br> |
|
|
{% endif %} |
|
|
</p> |
|
|
|
|
|
{% 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> |
|
|
|