django-uni-form icon indicating copy to clipboard operation
django-uni-form copied to clipboard

Django uniform output invalid HTMl

Open ksamuel opened this issue 13 years ago • 1 comments

I have a gigantic layout, and part of it is:

   layout = Layout(
        super(ThisForm, self).get_layout(),
        MultiField(
            u'<h3>Section J</h3>',
            Div(*(
                ThisForm.get_section_j_fields() +
                [HTML("<a href='#' class='button button-next'>Next</a>")]
            )),
            css_id = "step9",
            css_class = "form-step"
        ),
       [...]

It produces the following HTML:

<p class="blockLabel"/><h3>Section J</h3><p/>

Notice that the first 'p' tag is self closed.

ksamuel avatar Jan 09 '12 17:01 ksamuel

Please submit this ticket to https://github.com/maraujop/django-crispy-forms as it is where development on this project is occuring going forward. Thanks!

pydanny avatar Jan 09 '12 18:01 pydanny