insin / newforms-bootstrap

Components for rendering a newforms Form using Bootstrap 3
http://insin.github.io/newforms-bootstrap/grid.html
Other
48 stars 13 forks source link

Ability to use rows/columns without a Container #16

Open nickw444 opened 8 years ago

nickw444 commented 8 years ago

I like to wrap my entire page in a container, and would rather not have the form also wrapped in a container class.

Is this possible? As far as I can see, the documentation does not cover this, and attempting to replace <Container> with <div> yields Uncaught TypeError: Cannot read property 'boundField' of undefined

phthhieu commented 8 years ago

👍

This works

<forms.RenderForm form={ProfileForm} ref="form">
    <Container>
      <Row md='12'>
        <Field name="username" md="12"/>
      </Row>
    </Container>
  </forms.RenderForm>

But this doesnt:

<forms.RenderForm form={ProfileForm} ref="form">
    <Container>
      <Row md='12'>
         <Col md='6'>
            <Field name="username" md="12"/>
         </Col>
      </Row>
    </Container>
  </forms.RenderForm>

It yields Uncaught TypeError: Cannot read property 'boundField' of undefined