How can I apply this style in Django? just one class i can apply in django but double class i cant do that.
Django 2.1, python 3.7
I want use this css style https://bootsnipp.com/snippets/Zk2Pz
<div class="funkyradio">
<div class="funkyradio-default">
<input type="radio" name="radio" id="radio1" />
<label for="radio1">First Option default</label>
</div>
<div class="funkyradio-primary">
<input type="radio" name="radio" id="radio2" checked/>
<label for="radio2">Second Option primary</label>
</div>
<div class="funkyradio-success">
<input type="radio" name="radio" id="radio3" />
<label for="radio3">Third Option success</label>
</div>
<div class="funkyradio-danger">
<input type="radio" name="radio" id="radio4" />
<label for="radio4">Fourth Option danger</label>
</div>
<div class="funkyradio-warning">
<input type="radio" name="radio" id="radio5" />
<label for="radio5">Fifth Option warning</label>
</div>
<div class="funkyradio-info">
<input type="radio" name="radio" id="radio6" />
<label for="radio6">Sixth Option info</label>
</div>
</div>
I want apply this part, and my django form class is
class DataUploadForm(forms.ModelForm):
class Meta:
model = DataUpload
fields =('Type', 'Kind', 'description', 'document',)
widgets = {
'Type': forms.RadioSelect(attrs = {'class' : 'funkyradio funkyradio-default'}),
'Kind': forms.RadioSelect(),
}
but it isn't work
I want radio form using that css
Aucun commentaire:
Enregistrer un commentaire