django-fobi/examples/tutorial/sample_textarea/forms.py

20 lines
528 B
Python
Raw Permalink Normal View History

2014-10-11 03:54:24 +00:00
from django import forms
from fobi.base import BasePluginForm
2014-10-11 03:54:24 +00:00
class SampleTextareaForm(forms.Form, BasePluginForm):
"""SampleTextareaForm."""
2014-10-11 03:54:24 +00:00
plugin_data_fields = [
("name", ""),
("label", ""),
("initial", ""),
2022-07-12 20:53:28 +00:00
("required", False),
2014-10-11 03:54:24 +00:00
]
name = forms.CharField(label="Name", required=True)
label = forms.CharField(label="Label", required=True)
initial = forms.CharField(label="Initial", required=False)
required = forms.BooleanField(label="Required", required=False)