Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap3 form-horizontal - StrictButton alignment #268

Closed
tittoto opened this issue Nov 13, 2013 · 4 comments
Closed

bootstrap3 form-horizontal - StrictButton alignment #268

tittoto opened this issue Nov 13, 2013 · 4 comments

Comments

@tittoto
Copy link

tittoto commented Nov 13, 2013

Setting:
self.helper.form_class = 'form-horizontal'
self.helper.label_class = 'col-lg-2'
self.helper.field_class = 'col-lg-8'
helper.layout = Layout(
'email',
'password',
'remember_me',
StrictButton('Sign in', css_class='btn-default'),
)

Does not render the button like the documentation screenshot. It is aligned to the labels instead of the fields.

Not conform to https://django-crispy-forms.readthedocs.org/en/latest/crispy_tag_forms.html#bootstrap3-horizontal-forms

Thanks!

@maraujop
Copy link
Contributor

maraujop commented Feb 2, 2014

Thanks for the report @tittoto this is now fixed in dev branch thanks to PR #279

Cheers,
Miguel

@carltongibson
Copy link
Collaborator

Closing this in favour of #452. Please follow along there.

(If you still have this problem after the new release, shout and we can reopen)

@ataylor32
Copy link

This is still an issue for me. I tried version 1.6.0 and also the dev branch.

@slavogiez
Copy link

I had the same problem. I just wrapped the StrictButton into a FormActions as mentionned here :

self.helper.layout = Layout(
'email',
'password',
'remember_me',
FormActions(
StrictButton('Sign in', css_class='btn-default')
),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants