from django.conf.urls import include, url from protocoloadm.views import (AnularProtocoloAdmView, ComprovanteProtocoloView, CriarDocumentoProtocolo, DetailDocumentoAdministrativo, DocumentoAcessorioAdministrativoCrud, DocumentoAcessorioAdministrativoEditView, DocumentoAcessorioAdministrativoView, DocumentoAdministrativoCrud, PesquisarDocumentoAdministrativo, ProposicaoDetailView, ProposicaoReceberView, ProposicaoView, ProposicoesIncorporadasView, ProposicoesNaoIncorporadasView, ProposicoesNaoRecebidasView, ProtocoloDocumentoCrud, ProtocoloDocumentoView, ProtocoloListView, ProtocoloMateriaCrud, ProtocoloMateriaView, ProtocoloMostrarView, ProtocoloPesquisaView, StatusTramitacaoAdministrativoCrud, TipoDocumentoAdministrativoCrud, TramitacaoAdmDeleteView, TramitacaoAdmEditView, TramitacaoAdmIncluirView, TramitacaoAdministrativoCrud, TramitacaoAdmView, pesquisa_autores) urlpatterns = [ url(r'^protocoloadm/docadm/', include(DocumentoAdministrativoCrud.get_urls())), url(r'^protocoloadm/tipo-documento-adm/', include(TipoDocumentoAdministrativoCrud.get_urls())), url(r'^protocoloadm/doc-acessorio/', include(DocumentoAcessorioAdministrativoCrud.get_urls())), url(r'^protocoloadm/status-tramitacao-adm/', include(StatusTramitacaoAdministrativoCrud.get_urls())), url(r'^protocoloadm/tramitacao-adm/', include(TramitacaoAdministrativoCrud.get_urls())), url(r'^protocoloadm/protocolo-doc/', include(ProtocoloDocumentoCrud.get_urls())), url(r'^protocoloadm/protocolo-mat/', include(ProtocoloMateriaCrud.get_urls()), name='protocolomat'), url(r'^protocoloadm/protocolo$', ProtocoloPesquisaView.as_view(), name='protocolo'), url(r'^protocoloadm/protocolo_list$', ProtocoloListView.as_view(), name='protocolo_list'), url(r'^protocoloadm/(?P\d+)/(?P\d+)/protocolo_mostrar$', ProtocoloMostrarView.as_view(), name='protocolo_mostrar'), url(r'^protocoloadm/anular-protocolo', AnularProtocoloAdmView.as_view(), name='anular_protocolo'), url(r'^protocoloadm/protocolar-doc', ProtocoloDocumentoView.as_view(), name='protocolar_doc'), url(r'^protocoloadm/protocolar-mat', ProtocoloMateriaView.as_view(), name='protocolar_mat'), url(r'^protocoloadm/pesq-doc-adm', PesquisarDocumentoAdministrativo.as_view(), name='pesq_doc_adm'), url(r'^protocoloadm/doc-adm/(?P\d+)$', DetailDocumentoAdministrativo.as_view(), name='detail_doc_adm'), url(r'^protocoloadm/doc-ace-adm/(?P\d+)', DocumentoAcessorioAdministrativoView.as_view(), name='doc_ace_adm'), url(r'^protocoloadm/doc-ace-adm/edit/(?P\d+)/(?P\d+)', DocumentoAcessorioAdministrativoEditView.as_view(), name='doc_ace_adm_edit'), url(r'^protocoloadm/(?P\d+)/tramitacao$', TramitacaoAdmView.as_view(), name='tramitacao_adm'), url(r'^protocoloadm/(?P\d+)/tramitacao_incluir', TramitacaoAdmIncluirView.as_view(), name='tramitacao_incluir'), url(r'^protocoloadm/(?P\d+)/tramitacao_edit', TramitacaoAdmEditView.as_view(), name='tramitacao_edit'), url(r'^protocoloadm/(?P\d+)/tramitacao_delete/(?P\d+)', TramitacaoAdmDeleteView.as_view(), name='tramitacao_delete'), url(r'^protocoloadm/(?P\d+)/(?P\d+)/comprovante$', ComprovanteProtocoloView.as_view(), name='comprovante_protocolo'), url(r'^protocoloadm/(?P\d+)/(?P\d+)/criar_documento$', CriarDocumentoProtocolo.as_view(), name='criar_documento'), # TODO: move to Proposicoes app url(r'^proposicoes$', ProposicaoView.as_view(), name='proposicao'), url(r'^proposicoes/proposicao-receber', ProposicaoReceberView.as_view(), name='proposicao_receber'), url(r'^proposicoes/proposicoes-naorecebidas', ProposicoesNaoRecebidasView.as_view(), name='proposicoes_naorecebidas'), url(r'^proposicoes/proposicoes-naoincorporadas', ProposicoesNaoIncorporadasView.as_view(), name='proposicoes_naoincorporadas'), url(r'^proposicoes/proposicoes-incorporadas', ProposicoesIncorporadasView.as_view(), name='proposicoes_incorporadas'), url(r'^proposicoes/(?P\d+)/proposicao', ProposicaoDetailView.as_view(), name='proposicao_view'), url(r'^proposicoes/pesquisar_autores', pesquisa_autores, name='pesquisar_autores') ]