|
@ -13,9 +13,9 @@ from sapl.base.models import AppConfig as AppsAppConfig |
|
|
from sapl.crud.base import (RP_DETAIL, RP_LIST, Crud, |
|
|
from sapl.crud.base import (RP_DETAIL, RP_LIST, Crud, |
|
|
CrudAux, MasterDetailCrud, |
|
|
CrudAux, MasterDetailCrud, |
|
|
PermissionRequiredForAppCrudMixin) |
|
|
PermissionRequiredForAppCrudMixin) |
|
|
from sapl.comissoes.forms import (ComissaoForm,ComposicaoForm, DocumentoAcessorioCreateForm, |
|
|
from sapl.comissoes.forms import (ComissaoForm, ComposicaoForm, DocumentoAcessorioCreateForm, |
|
|
DocumentoAcessorioEditForm, ParticipacaoCreateForm, |
|
|
DocumentoAcessorioEditForm, ParticipacaoCreateForm, |
|
|
ParticipacaoEditForm, ReuniaoForm) |
|
|
ParticipacaoEditForm, ReuniaoForm, PeriodoForm) |
|
|
from sapl.materia.models import MateriaLegislativa, Tramitacao |
|
|
from sapl.materia.models import MateriaLegislativa, Tramitacao |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -37,12 +37,19 @@ def pegar_url_reuniao(pk): |
|
|
return url |
|
|
return url |
|
|
|
|
|
|
|
|
CargoCrud = CrudAux.build(CargoComissao, 'cargo_comissao') |
|
|
CargoCrud = CrudAux.build(CargoComissao, 'cargo_comissao') |
|
|
PeriodoComposicaoCrud = CrudAux.build(Periodo, 'periodo_composicao_comissao') |
|
|
|
|
|
|
|
|
|
|
|
TipoComissaoCrud = CrudAux.build( |
|
|
TipoComissaoCrud = CrudAux.build( |
|
|
TipoComissao, 'tipo_comissao', list_field_names=[ |
|
|
TipoComissao, 'tipo_comissao', list_field_names=[ |
|
|
'sigla', 'nome', 'natureza', 'dispositivo_regimental']) |
|
|
'sigla', 'nome', 'natureza', 'dispositivo_regimental']) |
|
|
|
|
|
|
|
|
|
|
|
class PeriodoComposicaoCrud(CrudAux): |
|
|
|
|
|
model = Periodo |
|
|
|
|
|
|
|
|
|
|
|
class CreateView(CrudAux.CreateView): |
|
|
|
|
|
form_class = PeriodoForm |
|
|
|
|
|
|
|
|
|
|
|
class UpdateView(CrudAux.UpdateView): |
|
|
|
|
|
form_class = PeriodoForm |
|
|
|
|
|
|
|
|
class ParticipacaoCrud(MasterDetailCrud): |
|
|
class ParticipacaoCrud(MasterDetailCrud): |
|
|
model = Participacao |
|
|
model = Participacao |
|
|