Browse Source

Adiciona Protocolo a listagem de Docs Adm

pull/940/head
Eduardo Calil 9 years ago
parent
commit
a29419e092
  1. 5
      sapl/protocoloadm/models.py
  2. 4
      sapl/templates/protocoloadm/documentoadministrativo_filter.html

5
sapl/protocoloadm/models.py

@ -94,6 +94,11 @@ class Protocolo(models.Model):
('action_anular_protocolo', _('Permissão para Anular Protocolo')),
)
def __str__(self):
return _('%(numero)s/%(ano)s') % {
'numero': self.numero, 'ano': self.ano
}
@reversion.register()
class DocumentoAdministrativo(models.Model):

4
sapl/templates/protocoloadm/documentoadministrativo_filter.html

@ -39,6 +39,10 @@
<strong><a href="{% url 'protocoloadm:documentoadministrativo_detail' d.id %}">{{d.tipo.sigla}} {{d.numero}}/{{d.ano}} - {{d.tipo}}</strong></a></br>
<strong>Interessado:</strong>&nbsp;{{ d.interessado|default_if_none:"Não Informado"}}</br>
<strong>Assunto:</strong>&nbsp;{{ d.assunto|safe }}</br>
{% if d.protocolo %}
<strong>Protocolo:</strong>&nbsp;<a href="{% url 'sapl.protocoloadm:protocolo_mostrar' d.protocolo.id %}">{{ d.protocolo}}</a></br>
{% endif %}
</td>
</tr>
{% endfor %}

Loading…
Cancel
Save