ckrybus / crispy-bulma

Bulma template pack for django-crispy-forms
MIT License
27 stars 7 forks source link

Some widgets unsupported #2

Closed pythonbrad closed 1 year ago

pythonbrad commented 1 year ago

Some widgets are not styled.


Update 2022-12-29:

ckrybus commented 1 year ago

Hi @pythonbrad,

I did not check all the widgets you listed, but they should work. Here is a small demo how a rendered form looks like.

I suspect that you did not include bulma.css in your base.html template. Here is an example:

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
  </head>
pythonbrad commented 1 year ago

Here is a small demo how a rendered form looks like.

I tried to update the demonstration to use the crispy_bulma.widgets.FileUploadInput widget. Available Here

What is change ?

a

b

pythonbrad commented 1 year ago

The following widgets can be fixed in using of widget=forms.TextInput(attrs={'type': '<type>'})

ckrybus commented 1 year ago

@pythonbrad all widgets except SplitDateTimeWidget (issue #5) should work now in the main branch. For now FileField (ClearableFileInput, FileInput) is styled correctly only when the newly fixed FileUploadInput widget is being explicitely used.