From 7514b5f14d4681fdeab86484348f58010ae3a620 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 26 Feb 2015 13:02:43 -0300 Subject: [PATCH] Add link to add related occurrence in parliament page --- sigi/apps/casas/admin.py | 1 + .../templates/casas/ocorrencia_inline.html | 164 ++++++++++++++++++ 2 files changed, 165 insertions(+) create mode 100644 sigi/apps/casas/templates/casas/ocorrencia_inline.html diff --git a/sigi/apps/casas/admin.py b/sigi/apps/casas/admin.py index 9660d25..a91be12 100644 --- a/sigi/apps/casas/admin.py +++ b/sigi/apps/casas/admin.py @@ -160,6 +160,7 @@ class OcorrenciaInline(admin.TabularInline): extra = 0 max_num = 0 can_delete = False + template = 'casas/ocorrencia_inline.html' class GerentesContasFilter(admin.filters.RelatedFieldListFilter): diff --git a/sigi/apps/casas/templates/casas/ocorrencia_inline.html b/sigi/apps/casas/templates/casas/ocorrencia_inline.html new file mode 100644 index 0000000..6901891 --- /dev/null +++ b/sigi/apps/casas/templates/casas/ocorrencia_inline.html @@ -0,0 +1,164 @@ +{% load i18n admin_static admin_modify bootstrapped_goodies_tags %} +
+ +
+ +