diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index 7f9e8d114..94f50cbd0 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -162,6 +162,11 @@ class MateriaSimplificadaForm(ModelForm): class MateriaLegislativaForm(ModelForm): + autor = forms.ModelChoiceField(required=True, + empty_label='------', + queryset=Autor.objects.all() + ) + class Meta: model = MateriaLegislativa exclude = ['texto_articulado', 'autores', 'proposicao', diff --git a/sapl/templates/materia/layouts.yaml b/sapl/templates/materia/layouts.yaml index 888a5e461..31cb7a346 100644 --- a/sapl/templates/materia/layouts.yaml +++ b/sapl/templates/materia/layouts.yaml @@ -21,6 +21,7 @@ TipoFimRelatoria: MateriaLegislativa: {% trans 'Identificação Básica' %}: + - autor - tipo ano numero - data_apresentacao numero_protocolo tipo_apresentacao - texto_original