diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py index 234f5c13c..03d1d3d6d 100644 --- a/sapl/protocoloadm/views.py +++ b/sapl/protocoloadm/views.py @@ -87,9 +87,18 @@ class DocumentoAdministrativoCrud(Crud): class BaseMixin(Crud.BaseMixin): list_field_names = ['tipo', 'numero', 'ano', 'data', - 'numero_protocolo', 'ano_protocolo', 'assunto', + 'numero_protocolo', 'assunto', 'interessado', 'tramitacao', 'texto_integral'] + @property + def search_url(self): + namespace = self.model._meta.app_config.name + return reverse('%s:%s' % (namespace, 'pesq_doc_adm')) + + @property + def list_url(self): + return '' + class ListView(DocumentoAdministrativoMixin, Crud.ListView): pass diff --git a/sapl/templates/protocoloadm/documentoadministrativo_detail.html b/sapl/templates/protocoloadm/documentoadministrativo_detail.html deleted file mode 100644 index 4e38ce963..000000000 --- a/sapl/templates/protocoloadm/documentoadministrativo_detail.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "crud/detail.html" %} -{% load i18n %} -{% block actions %} -{% load common_tags %} - -
- {% trans 'Tramitações' %} - {% if perms|get_change_perm:view %} - {% trans 'Editar' %} - {% endif %} - {% if perms|get_delete_perm:view %} - {% trans 'Excluir' %} - {% endif %} -
-{% endblock actions %} diff --git a/sapl/templates/protocoloadm/subnav.yaml b/sapl/templates/protocoloadm/subnav.yaml new file mode 100644 index 000000000..22857647b --- /dev/null +++ b/sapl/templates/protocoloadm/subnav.yaml @@ -0,0 +1,5 @@ +{% load i18n common_tags %} +- title: {% trans 'Início' %} + url: documentoadministrativo_detail +- title: {% trans 'Tramitação' %} + url: tramitacaoadministrativo_list