Browse Source

Adiciona signals para atualizar o index

pull/980/head
Eduardo Calil 9 years ago
committed by Edward Ribeiro
parent
commit
74be08dd84
  1. 10
      sapl/templates/search/search.html

10
sapl/templates/search/search.html

@ -4,6 +4,7 @@
{% block base_content %} {% block base_content %}
<h1><legend>Pesquisa Textual</legend></h1> <h1><legend>Pesquisa Textual</legend></h1>
</br> </br>
<form method="get" action="."> <form method="get" action=".">
@ -50,13 +51,22 @@
{% if result.object|search_get_model == 'm' %} {% 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>Matéria Legislativa: </strong> <a href="{% url 'sapl.materia:materialegislativa_detail' result.object.pk %}">{{ result.object }}</a></br>
{% if result.object.texto_original %}
<strong>Texto Original:</strong> <a href="{{result.object.texto_original.url}}"> Clique aqui </a></br> <strong>Texto Original:</strong> <a href="{{result.object.texto_original.url}}"> Clique aqui </a></br>
{% else %}
<strong>O texto desta matéria foi removido recentemente. Em breve ela sairá desta listagem.</strong></br>
{% endif %}
</p> </p>
{% elif result.object|search_get_model == 'd' %} {% elif result.object|search_get_model == 'd' %}
<p> <p>
<strong> Documento Acessório: </strong><a href="{% url 'sapl.materia:documentoacessorio_detail' result.object.pk %}">{{ result.object }}</a></br> <strong> Documento Acessório: </strong><a href="{% url 'sapl.materia:documentoacessorio_detail' result.object.pk %}">{{ result.object }}</a></br>
{% if result.object.arquivo %}
<strong>Texto Original:</strong> <a href="{{result.object.arquivo.url}}"> Clique aqui </a></br> <strong>Texto Original:</strong> <a href="{{result.object.arquivo.url}}"> Clique aqui </a></br>
{% else %}
<strong>O texto deste documento foi removido recentemente. Em breve ele sairá desta listagem.</strong></br>
{% endif %}
</p> </p>
{% endif %} {% endif %}
</td> </td>

Loading…
Cancel
Save