From c8ee63dc6e8b46cef0da321c2907d080d8f96332 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 17 Nov 2015 14:03:53 -0200 Subject: [PATCH] Test layout in FormHelper --- materia/views.py | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/materia/views.py b/materia/views.py index 9dc0d6dab..e082247de 100644 --- a/materia/views.py +++ b/materia/views.py @@ -1,7 +1,7 @@ from datetime import date from crispy_forms.helper import FormHelper -from crispy_forms.layout import ButtonHolder, Fieldset, Layout, Submit +from crispy_forms.layout import ButtonHolder, Fieldset, Layout, Submit, HTML from django import forms from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse @@ -1262,16 +1262,47 @@ class TramitacaoForm(ModelForm): self.helper = FormHelper() self.helper.layout = Layout( Fieldset('Incluir Tramitação', + HTML(""), + HTML(""), + HTML(""), + HTML(""), + HTML(""), + ), ButtonHolder( Submit('submit', 'Salvar', css_class='button primary')