Browse Source

Fix yes/no icon broken link

producao
Marcio Mazza 10 years ago
parent
commit
5779ed3e23
  1. 4
      sigi/apps/servicos/templates/admin/servicos/casaatendida/change_form.html

4
sigi/apps/servicos/templates/admin/servicos/casaatendida/change_form.html

@ -1,5 +1,6 @@
{% extends "base_change_form.html" %}
{% load i18n admin_modify %}
{% load static from staticfiles %}
{% block after_related_objects %}
{{ block.super }}
@ -23,7 +24,8 @@
<tr>
<td><p><a href="{% url 'admin:servicos_servico_change' srv.id %}">{{ srv.tipo_servico.sigla }}</a></p></td>
<td>{{ srv.tipo_servico }}</td>
<td><img alt="{{ srv.hospedagem_interlegis }}" src="{{ MEDIA_URL }}img/admin/icon-{{ srv.hospedagem_interlegis|yesno:'yes,no' }}.gif"></td>
<td><img alt="{{ srv.hospedagem_interlegis }}"
src="{% static srv.hospedagem_interlegis|yesno:'admin/img/icon-yes.gif,admin/img/icon-no.gif' %}"></td>
<td>{{ srv.data_ativacao|date:'SHORT_DATE_FORMAT' }}</td>
<td>{{ srv.data_alteracao|date:'SHORT_DATE_FORMAT' }}</td>
<td>{{ srv.data_desativacao|date:'SHORT_DATE_FORMAT' }}</td>

Loading…
Cancel
Save