All Questions
22
questions
0
votes
0
answers
426
views
crispy forms + Bootstrap3: bad position of error field with input-group-addon
When using a input-group-addon, when there's an error, the span element of the error is wrapped by the input-group-addon:
the html:
<div class="controls col-md-6 input-group">
<input name=...
2
votes
5
answers
4k
views
add an icon to django crispy form submit button
I am struggling with the Button on a crispy form. Instead of just the default button I would like to have an icon inside
The form I am currently using is like
class MyForm(forms.ModelForm):
helper =...
0
votes
0
answers
1k
views
Why does a checkbox input designed this way on a horizontal Django crispy form?
My project uses Twitter bootstrap on the front-end, the backend is Django, we also use crispy forms. fifth_year is a simple boolean model field
class MyModel(models.Model):
first_name = models....
0
votes
1
answer
2k
views
Crispy forms text input height (Django 1.9)
My input text fields rendered with crispy forms are way too tall. In all the examples I see most text fields have a height of just one character (that is what I want). But my input fields are much ...
3
votes
0
answers
2k
views
Django Crispy Forms Inline Fields in Horizontal Form
I want to be able to do the ff:
I was following this SO answer. However, I can't fully implement how I want it. I have the following set-up:
self.helper.form_class = 'form-horizontal'
self.helper....
5
votes
2
answers
5k
views
How to make Bootstrap file browse button using django-crispy-forms
Here is my Django forms.py script, using django-crispy-forms
#!/usr/bin/env python
from django import forms
from .models import Method1
from crispy_forms.helper import FormHelper
from crispy_forms....
2
votes
1
answer
2k
views
How can I manipulate the form-group and controls divs with django-crispy-forms?
I'm using Django 1.8 and Crispy-Forms with Twitter Bootstrap 3
Here's what I have at the moment:
self.helper.layout = Layout(
...
'address',
StrictButton('Find address', id='find_address'...
3
votes
1
answer
2k
views
No error message shown with crispy forms and bootstrap 3
I have spent hours today trying out and googling, I just can't find the solution for my problem:
I use crispy forms in version 1.4.0 and Bootstrap3. I have a CreateView as shown below which displays ...
4
votes
1
answer
5k
views
form-horizontal not working with django-crispy-forms and django-registration-redux
Disclaimer: I'm a complete novice with Django and python.
I'm using crispy forms with django registration redux. I've applied form-horizontal to a subclass of the registration form but it doesn't ...
1
vote
0
answers
187
views
Default Bootstrap's 'input-sm' setting for crispy forms
Is there a way to set Bootstrap 3's input-sm in django-crispy-forms globally (i.e. default setting)?
I searched the documentation, but apart from setting a css_class using Layout, I'm not really ...
5
votes
1
answer
3k
views
Django CrispyForms - Render every form of a formset in separate bootstrap tabs
I would like to render each form of a formset in a different bootstrap3 tabs using django-crispyForms, but it seems to not be simple because crispyForms does not handle formset completely yet.
my ...
4
votes
1
answer
2k
views
crispy-form's Helper doesn't take effect
It seems the FormHelper simply doesn't anything. Here's my Form:
class PerguntarForm(forms.Form):
title = forms.CharField(label='Título', max_length=200)
categoria = forms.ModelChoiceField(...
1
vote
1
answer
203
views
StrictButton at the bottom of a modelforms
As I find borring to repeat myself, I tought of using the Meta.fields in my helper instead of copying twice my list of fields, just to have the StrictButton positioned at the bottom of my form. Here ...
3
votes
1
answer
810
views
django-crispy-forms: form_class appears but label_class and field_class does not
This is my first time using crispy-forms and I am trying to make a horizontal crispy-form based on a ModelForm using bootstrap 3. In the output to the template "horizontal-form" shows up but "...
8
votes
1
answer
3k
views
Rendering separate MultiWidget fields using Django Crispy Forms
My specific case is that I need this field rendered in one line (using Bootstrap 3):
So something like:
<div class="form-group">
<label>Amount:</label>
<div class="row"&...