Browse Source

ajuste no formulário de proposições para sapl_frontend

pull/2485/head
Leandro Roberto 7 years ago
parent
commit
383e640097
  1. 12
      sapl/materia/forms.py
  2. 2
      sapl/templates/materia/proposicao_form.html

12
sapl/materia/forms.py

@ -1403,10 +1403,14 @@ class ProposicaoForm(forms.ModelForm):
fields.append(to_column(( fields.append(to_column((
'texto_original', 7 if self.texto_articulado_proposicao else 12))) 'texto_original', 7 if self.texto_articulado_proposicao else 12)))
fields.append(to_column((Fieldset(_('Outras informações - Vincular a Matéria Legislativa Existente'), fields.append(
to_column(('tipo_materia', 12)), to_column(
to_column(('numero_materia', 6)), (
to_column(('ano_materia', 6)) Fieldset(
_('Outras informações - Vincular a Matéria Legislativa Existente'),
to_row([('tipo_materia', 12), ]),
to_row([('numero_materia', 6),
('ano_materia', 6)]),
), 12)), ), 12)),
) )
self.helper = FormHelper() self.helper = FormHelper()

2
sapl/templates/materia/proposicao_form.html

@ -9,7 +9,7 @@
$("input[name=tipo_texto]").change(function(event) { $("input[name=tipo_texto]").change(function(event) {
if (this.value == 'D' && this.checked) if (this.value == 'D' && this.checked)
$("#div_id_texto_original").removeClass('hidden'); $("#div_id_texto_original").removeClass('hidden');
else if (this.value == 'D' && !this.checked) else if (this.value == 'T' && this.checked)
$("#div_id_texto_original").addClass('hidden'); $("#div_id_texto_original").addClass('hidden');
}); });

Loading…
Cancel
Save