dimanche 19 avril 2015

Using django-angular with django-bootstrap

I'm using django-angular for a project and wanted to use django-bootstrap3 with django forms. I want to show an angular powered model form in the template, the code for which is:

class InfoForm(NgModelFormMixin, NgFormValidationMixin, NgModelForm):
form_name = 'infoForm'
class Meta:
model = models.InfoModel

To display it using django-bootstrap3, I used {% bootstrap_form form %} in my template but that isn't working the way it should:

enter image description here

What can be done to make the two work together properly?

Aucun commentaire:

Enregistrer un commentaire