All Questions
Tagged with twitter-bootstrap-3 django
161
questions
1
vote
1
answer
200
views
Django in template using if tag compare one variable with a number always give false
I first use widthratio tag to calculate a ratio percentage number and assgign it to a variable named Ratio
Then when I try to compare it with an integer in if and elif tag, the if and elif tag seems ...
6
votes
2
answers
8k
views
django-crispy-forms input size
According with django-crispy-form documentation, I will be able to change input width with class input-small. But my form always looks with width at 100%:
Also, If I add css_class to Field the size ...
0
votes
1
answer
729
views
Which bootstrap column is the mouse hovering over?
I'm making a `django` website, where I have to change the color of text and make a box appears when hovering over their bootstrap column. The problem I'm having is trying to individually refer to the ...
17
votes
7
answers
21k
views
crispy-forms: add css class for one of the inputs
In my forms.py I have
[...]
self.helper.layout = Layout(
Field('name'),
Field('description'),
)
self.helper.form_class = 'form-horizontal'
self.helper.label_class = 'col-md-2 col-xs-3'
self....
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 =...
1
vote
1
answer
229
views
How to highlight the current section
When navigating in the menu bar, some of the options are not selected. I have tried to do it with JQuery but my attempts are in vain.
Briefly what I am looking for is that if the user clicks Home Page ...
0
votes
0
answers
52
views
Django: Bootstrap 3 modal darkens when being clicked
This is a quiz app where several quiz can be added to a particular topic. However, when I click on the button to start the quiz, the modal asking for confirmation pops up but in a darkened way. It ...
0
votes
1
answer
165
views
Django modal bootstrap not displaying
I have been blocked on this problem for several days. I have bootstrap 3.3.7 in the project root folder. I am rendering some buttons in the django template that should open modal windows when clicked. ...
2
votes
2
answers
5k
views
ImportError: No module named bootstrap3 even while using virtualenv
After installing bootstrap3 by
$ pip install django-bootstrap3
while my virtualenv was active. i.e.
(venv)deathstroke@Batcomputer:~/Documents/DjangoProjects/venv/bin$ pip install django-bootstrap3
...
0
votes
2
answers
515
views
Django + Bootstrap modal form still shows Djangos default errors, not bootstrapped errors?
I am struggling with displaying bootstraps form errors in a popup form modal. When I submit the form, with some missing required fields, I am still getting Django's built in basic form error messages, ...
0
votes
1
answer
274
views
Django + Bootstrap collapsed table front-end issue?
I have been trying to figure out a front-end issue I've been on for a few days. I am using Django + Bootstrap collapsed accordion. What I am trying to do is completely hide a div, and all spacing ...
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....
0
votes
1
answer
110
views
DJANGO initial values in form not shown in template (some do some don't)
I have these Models, Tipos, Prioridad and Estado, related to Tarea
as defined below:
class Tipos(models.Model):
tipo = models.CharField(max_length=16,
verbose_name='...
0
votes
0
answers
69
views
Djnago: Bootstrap3 form dropdown options display issue
I am using bootstrap3 in django template to display dropdown menu so that user can select the option they chooses. After selecting the option, selected option is not displaying clearly. See below ...
6
votes
3
answers
10k
views
Display Form Field based on other Fields within the Django Form
I am trying to create a way to only display certain fields within a django form based on the bound data of another field within that same form. I'm familiar with the idea of form.field.bound_type but ...