mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
718 B
27 lines
718 B
|
|
from base.views import get_casalegislativa
|
|
|
|
|
|
def parliament_info(request):
|
|
|
|
context = {
|
|
'state': 'Estado',
|
|
'state_abbr': 'UF',
|
|
'city': 'Cidade',
|
|
'parliament_type': 'Câmara Municipal',
|
|
'address': 'Rua Lorem Ipsum de Amet, Casa X',
|
|
'postal_code': '70000-000',
|
|
'phone_number': '00 0000-0000',
|
|
'url_portal': '#',
|
|
'url_email': '#',
|
|
}
|
|
|
|
casa_legislativa = get_casalegislativa()
|
|
|
|
if casa_legislativa:
|
|
context['parliament_type'] = casa_legislativa.nome
|
|
context['city'] = casa_legislativa.municipio
|
|
context['state'] = casa_legislativa.uf
|
|
context['logotipo'] = casa_legislativa.logotipo
|
|
|
|
return context
|
|
|