from django.conf.urls import include, url from compilacao import views from compilacao.views import (TipoNotaCrud, TipoPublicacaoCrud, TipoVideCrud, VeiculoPublicacaoCrud) from .apps import AppConfig app_name = AppConfig.name urlpatterns_compilacao = [ url(r'^$', views.TaListView.as_view(), name='ta_list'), url(r'^create$', views.TaCreateView.as_view(), name='ta_create'), url(r'^(?P[0-9]+)$', views.TaDetailView.as_view(), name='ta_detail'), url(r'^(?P[0-9]+)/edit$', views.TaUpdateView.as_view(), name='ta_edit'), url(r'^(?P[0-9]+)/delete$', views.TaDeleteView.as_view(), name='ta_delete'), url(r'^(?P[0-9]+)/text$', views.TextView.as_view(), name='ta_text'), url(r'^(?P[0-9]+)/text/vigencia/(?P.+)/$', views.TextView.as_view(), name='ta_vigencia'), url(r'^(?P[0-9]+)/text/edit', views.TextEditView.as_view(), name='ta_text_edit'), url(r'^(?P[0-9]+)/text/(?P[0-9]+)/$', views.DispositivoView.as_view(), name='dispositivo'), url(r'^(?P[0-9]+)/text/(?P[0-9]+)/refresh', views.DispositivoEditView.as_view(), name='dispositivo_edit'), url(r'^(?P[0-9]+)/text/(?P[0-9]+)/actions', views.ActionsEditView.as_view(), name='dispositivo_actions'), url(r'^(?P[0-9]+)/text/' '(?P[0-9]+)/nota/create$', views.NotasCreateView.as_view(), name='nota_create'), url(r'^(?P[0-9]+)/text/' '(?P[0-9]+)/nota/(?P[0-9]+)/edit$', views.NotasEditView.as_view(), name='nota_edit'), url(r'^(?P[0-9]+)/text/' '(?P[0-9]+)/nota/(?P[0-9]+)/delete$', views.NotasDeleteView.as_view(), name='nota_delete'), url(r'^(?P[0-9]+)/text/' '(?P[0-9]+)/vide/create$', views.VideCreateView.as_view(), name='vide_create'), url(r'^(?P[0-9]+)/text/' '(?P[0-9]+)/vide/(?P[0-9]+)/edit$', views.VideEditView.as_view(), name='vide_edit'), url(r'^(?P[0-9]+)/text/' '(?P[0-9]+)/vide/(?P[0-9]+)/delete$', views.VideDeleteView.as_view(), name='vide_delete'), url(r'^(?P[0-9]+)/text/search$', views.DispositivoSearchFragmentFormView.as_view(), name='search_dispositivo'), url(r'^(?P[0-9]+)/publicacao$', views.PublicacaoListView.as_view(), name='ta_pub_list'), url(r'^(?P[0-9]+)/publicacao/create$', views.PublicacaoCreateView.as_view(), name='ta_pub_create'), url(r'^(?P[0-9]+)/publicacao/(?P[0-9]+)$', views.PublicacaoDetailView.as_view(), name='ta_pub_detail'), url(r'^(?P[0-9]+)/publicacao/(?P[0-9]+)/edit$', views.PublicacaoUpdateView.as_view(), name='ta_pub_edit'), url(r'^(?P[0-9]+)/publicacao/(?P[0-9]+)/delete$', views.PublicacaoDeleteView.as_view(), name='ta_pub_delete'), url(r'^config/tipo-textoarticulado$', views.TipoTaListView.as_view(), name='tipo_ta_list'), url(r'^config/tipo-textoarticulado/create$', views.TipoTaCreateView.as_view(), name='tipo_ta_create'), url(r'^config/tipo-textoarticulado/(?P[0-9]+)$', views.TipoTaDetailView.as_view(), name='tipo_ta_detail'), url(r'^config/tipo-textoarticulado/(?P[0-9]+)/edit$', views.TipoTaUpdateView.as_view(), name='tipo_ta_edit'), url(r'^config/tipo-textoarticulado/(?P[0-9]+)/delete$', views.TipoTaDeleteView.as_view(), name='tipo_ta_delete'), ] urlpatterns = [ url(r'^ta/', include(urlpatterns_compilacao, 'compilacao', 'compilacao')), url(r'^ta/config/tipo-nota/', include(TipoNotaCrud.get_urls())), url(r'^ta/config/tipo-vide/', include(TipoVideCrud.get_urls())), url(r'^ta/config/tipo-publicacao/', include(TipoPublicacaoCrud.get_urls())), url(r'^ta/config/veiculo-publicacao/', include(VeiculoPublicacaoCrud.get_urls())), ]