-
+
diff --git a/sigi/apps/diagnosticos/templates/admin/diagnosticos/diagnostico/change_form.html b/sigi/apps/diagnosticos/templates/admin/diagnosticos/diagnostico/change_form.html
new file mode 100644
index 0000000..a00b7f9
--- /dev/null
+++ b/sigi/apps/diagnosticos/templates/admin/diagnosticos/diagnostico/change_form.html
@@ -0,0 +1,16 @@
+{% extends 'admin/change_form.html' %}
+{% load i18n reporting_tags %}
+
+{% block extrastyle %}
+ {{ block.super }}
+
+{% endblock %}
+
+{% block object-tools %}
+{% if change %}{% if not is_popup %}
+
+{% endif %}{% endif %}
+{% endblock %}
diff --git a/sigi/apps/diagnosticos/templates/admin/diagnosticos/diagnostico/change_list.html b/sigi/apps/diagnosticos/templates/admin/diagnosticos/diagnostico/change_list.html
new file mode 100644
index 0000000..fcafcb7
--- /dev/null
+++ b/sigi/apps/diagnosticos/templates/admin/diagnosticos/diagnostico/change_list.html
@@ -0,0 +1,19 @@
+{% extends "admin/change_list.html" %}
+{% load i18n reporting_tags admin_list %}
+
+{% block search %}
+
+{% endblock %}
diff --git a/sigi/apps/metas/templates/admin/metas/planodiretor/change_list.html b/sigi/apps/metas/templates/admin/metas/planodiretor/change_list.html
new file mode 100644
index 0000000..aa2b5f6
--- /dev/null
+++ b/sigi/apps/metas/templates/admin/metas/planodiretor/change_list.html
@@ -0,0 +1,19 @@
+{% extends "admin/change_list.html" %}
+{% load i18n reporting_tags admin_list %}
+
+{% block search %}
+
+{% endblock %}
diff --git a/sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_form.html b/sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_form.html
new file mode 100644
index 0000000..b59cb99
--- /dev/null
+++ b/sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_form.html
@@ -0,0 +1,14 @@
+{% extends "admin/change_form.html" %}
+{% load i18n reporting_tags %}
+
+{% block object-tools %}
+{% if change %}{% if not is_popup %}
+
+{% endif %}{% endif %}
+{% endblock %}
diff --git a/sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_list.html b/sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_list.html
new file mode 100644
index 0000000..de7da79
--- /dev/null
+++ b/sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_list.html
@@ -0,0 +1,13 @@
+{% extends "admin/change_list.html" %}
+{% load admin_list i18n reporting_tags %}
+
+{% block object-tools %}
+
+{% endblock %}
\ No newline at end of file
diff --git a/sigi/apps/servicos/admin.py b/sigi/apps/servicos/admin.py
index a01e96b..d5d4ab7 100644
--- a/sigi/apps/servicos/admin.py
+++ b/sigi/apps/servicos/admin.py
@@ -36,6 +36,7 @@ class ServicoFormAdmin(ModelForm):
id_casa = None
if id_casa:
+ print id_casa
casa = CasaAtendida.objects.get(pk=id_casa)
contatos = [(f.id, unicode(f)) for f in casa.funcionario_set.all()]
self.fields['contato_tecnico'].choices = contatos
diff --git a/sigi/apps/servicos/templates/admin/servicos/casaatendida/change_form.html b/sigi/apps/servicos/templates/admin/servicos/casaatendida/change_form.html
new file mode 100644
index 0000000..9c4a006
--- /dev/null
+++ b/sigi/apps/servicos/templates/admin/servicos/casaatendida/change_form.html
@@ -0,0 +1,42 @@
+{% extends "admin/change_form.html" %}
+{% load i18n admin_modify %}
+
+{% block after_related_objects %}
+{{ block.super }}
+
+{% endblock %}
\ No newline at end of file
diff --git a/sigi/apps/servicos/templates/admin/servicos/casaatendida/change_list.html b/sigi/apps/servicos/templates/admin/servicos/casaatendida/change_list.html
new file mode 100644
index 0000000..d49c9ba
--- /dev/null
+++ b/sigi/apps/servicos/templates/admin/servicos/casaatendida/change_list.html
@@ -0,0 +1,26 @@
+{% extends "admin/change_list.html" %}
+{% load admin_list i18n admin_urls %}
+
+{% block extrahead %}
+{{ block.super }}
+
+
+{% endblock %}
+
+{% block object-tools %}
+
+
+{% endblock %}
diff --git a/sigi/apps/servicos/templates/admin/servicos/servico/change_list.html b/sigi/apps/servicos/templates/admin/servicos/servico/change_list.html
new file mode 100644
index 0000000..5d90f39
--- /dev/null
+++ b/sigi/apps/servicos/templates/admin/servicos/servico/change_list.html
@@ -0,0 +1,4 @@
+{% extends "admin/change_list.html" %}
+
+{% block object-tools %}
+{% endblock %}
\ No newline at end of file
diff --git a/sigi/apps/servidores/admin.py b/sigi/apps/servidores/admin.py
index 670ea8f..f98a14a 100644
--- a/sigi/apps/servidores/admin.py
+++ b/sigi/apps/servidores/admin.py
@@ -18,6 +18,7 @@ class FuncaoAdmin(admin.ModelAdmin):
'servidor__user__email', 'servidor__user__first_name',
'servidor__user__last_name', 'servidor__user__username')
+
class FeriasAdmin(admin.ModelAdmin):
form = FeriasForm
list_display = ('servidor', 'inicio_ferias', 'fim_ferias')
@@ -27,9 +28,6 @@ class FeriasAdmin(admin.ModelAdmin):
'servidor__user__email', 'servidor__user__username')
-from sigi.apps.utils.alphabetic_filter import AlphabeticFilter
-
-
class ServidorFilter(AlphabeticFilter):
title = 'Nome do Servidor'
parameter_name = 'servidor__nome_completo'
@@ -92,6 +90,9 @@ class ServidorAdmin(admin.ModelAdmin):
return super(ServidorAdmin, self).lookup_allowed(lookup, value) or \
lookup in ['user__is_active__exact']
+ def has_add_permission(self, request):
+ return False
+
def formfield_for_dbfield(self, db_field, **kwargs):
if db_field.name == 'foto':
request = kwargs.pop("request", None)
@@ -99,9 +100,10 @@ class ServidorAdmin(admin.ModelAdmin):
return db_field.formfield(**kwargs)
return super(ServidorAdmin,self).formfield_for_dbfield(db_field, **kwargs)
+
admin.site.register(Servidor, ServidorAdmin)
admin.site.register(Funcao, FuncaoAdmin)
admin.site.register(Ferias, FeriasAdmin)
admin.site.register(Licenca, LicencaAdmin)
admin.site.register(Servico)
-admin.site.register(Subsecretaria)
\ No newline at end of file
+admin.site.register(Subsecretaria)
diff --git a/sigi/apps/servidores/templates/admin/servidores/servidor/change_form.html b/sigi/apps/servidores/templates/admin/servidores/servidor/change_form.html
new file mode 100644
index 0000000..3f05808
--- /dev/null
+++ b/sigi/apps/servidores/templates/admin/servidores/servidor/change_form.html
@@ -0,0 +1,27 @@
+{% extends 'admin/change_form.html' %}
+
+{% block form_top %}
+{% if adminform.form.instance.user %}
+
+{% endif %}
+{% endblock %}
diff --git a/sigi/apps/servidores/templates/admin/servidores/servidor/change_list.html b/sigi/apps/servidores/templates/admin/servidores/servidor/change_list.html
new file mode 100644
index 0000000..f688d16
--- /dev/null
+++ b/sigi/apps/servidores/templates/admin/servidores/servidor/change_list.html
@@ -0,0 +1,20 @@
+{% extends 'admin/change_list.html' %}
+{% load i18n reporting_tags %}
+
+{% block object-tools %}
+
+{% endblock %}