Questions tagged [django-floppyforms]

django-floppyforms is an application designed to provide the user with full control of form rendering.

django-floppyforms is an application designed to provide the user with full control of form rendering. The main difference between django innate forms and django-floppy forms is that fields and widgets are rendered in templates instead of using string interpolation. This allows for full control of the presentation using Django templates

17 questions
8
votes
1 answer

django crispy-forms & floppyforms w/ bootstrap: how to get help_text into a ModelForm?

I'm having a small (but annoying) problem with django forms right now. I'm using: twitter bootstrap django floppyforms (just for the html5 widgets) django crispy-forms (for the template tags & rendering) my forms are all ModelForms and that…
tiwei
  • 728
  • 10
  • 19
3
votes
2 answers

Display a grid radio form with Django Forms or Django Floppyforms

I would like to make a form with this kind of grid : Do you know how I can do this ? Is there a Django Form widget for that ? Actually it is questions with the same choices list displayed as radio in a grid. Thanks, Natim
Natim
  • 17,274
  • 23
  • 92
  • 150
2
votes
3 answers

django: Required Field Not Having The "required" Attribute in HTML

I am new to django and I think it is fantastic so far. I faced this weird issue today: I have this FormModel: class RegisterForm2(UserCreationForm): mobile2 = forms.CharField( label=_('Mobile Confirmation'), max_length=50, …
2
votes
1 answer

Django floppyforms OSMPointWidget does not display a map

I am trying to put an OSM-map, similar to the one in the geodjango-admin, into a form on my main site. I decided to use floppyforms, set everything up like in the documentation and it seems to get recognized, but strangely the map does not appear.…
Ucuri
  • 45
  • 1
  • 4
2
votes
1 answer

bootstrap styling not working with django floppyforms

I am switching from Django Crispy Forms to Floppy Forms, but my desired Bootstrap styling appears to be lost; now it just looks like a plain unstyled form. Crispy Here is what I had with Crispy Forms's Bootstrap template pack: Here was the…
RexE
  • 17,085
  • 16
  • 58
  • 81
2
votes
4 answers

Passing values to html template when using django-floppyforms

I'm using django-floppyforms. How do I pass some values to the html template? (Both for initializing a field, and for simple printing). The code below explains the setting: models.py: class ContactMessage(models.Model): msg_sender =…
Iddo Lev
  • 21
  • 4
2
votes
2 answers

Django templates lookup order

I'm writing an app, that uses django-floppyforms. Also, my app provides the default twitter bootstrap skin, so i have customized floppyforms templates im my app to make them bootstrap alike. I put floppyforms/{layouts, rows}/bootstrap into my app's…
night-crawler
  • 1,409
  • 1
  • 26
  • 39
1
vote
1 answer

Cbv view object has no attribute 'object' in django

My application in django 1.11, with django floppy forms, after entering the e-mail address - it's ok, sending mail. The problem is when there is no mail address and press the "send" button. I am getting error: 'ProductDetailView' object has no…
user9192656
  • 549
  • 3
  • 16
1
vote
0 answers

Django-floppyforms - validation and sending do not work

I have problem with django-floppyforms. On the page, the form appears as it should - it is a dedicated front-end. However, the validation and sending of the form does not work. I do not know why. My form with django-floppyforms: from events import…
user9192656
  • 549
  • 3
  • 16
1
vote
2 answers

Django floppyforms setting PointField from (lat,lon) and vice versa

Im trying to use floppyforms with some changes: models.py: class LocationPoint(models.Model): title = models.CharField(max_length=30, null=False, blank=False) radius = models.DecimalField(max_digits=5, decimal_places=2, null=False,…
user2552806
1
vote
2 answers

"UserWarning: A {% csrf_token %} was used in a template" views.py not recogniseing "RequestContext"?

I am working on an implementation of django-floppyforms, specifically the slider widget. However I cannot get it to display in my django web application. The native slider will work but the jQuery slider will not. The below image shows the…
Deepend
  • 4,057
  • 17
  • 60
  • 101
0
votes
1 answer

Django don't save a form using Floppyforms

I have a field called medicamento in my model that is a foreign key and I want all the values in that field to be displayed in a searcheable dropdown in my form. I was able to do that but when I try to save, it says "Select a valid choice. That…
0
votes
1 answer

Accessing form variables in Meta, Django Floppyforms

I'm using floppyforms with modelforms, and the only documentation on them is to specify widgets via the class Meta. However, I want my textarea widget placeholder to depend on a form variable, and Meta doesn't have access to class variables. Any…
sybaritic
  • 392
  • 6
  • 15
0
votes
1 answer

FloppyForms SplitDateTimeWidget doesn't set an existing date in the form

I've added the FloppyForms SplitDateTimeWidget to my datetime fields and if there is a value already stored the time is correctly set as expected in the forms, but the date just comes out as dd/mm/yyyy. What am I missing to get the form to correctly…
markwalker_
  • 12,078
  • 7
  • 62
  • 99
0
votes
1 answer

jQuery elements not appearing on Django page

I am trying to implement the Slider from django-floppyforms. However my page only displays a single empty text box when I use the examples given. When I render it using {{form.as_p}} I can only get the native slider to work but I I would really like…
Deepend
  • 4,057
  • 17
  • 60
  • 101
1
2