2014-10-11 03:54:24 +00:00
|
|
|
from django import forms
|
|
|
|
|
|
|
|
|
|
from fobi.base import BasePluginForm
|
|
|
|
|
|
2016-10-23 23:09:13 +00:00
|
|
|
|
2014-10-11 03:54:24 +00:00
|
|
|
class SampleTextareaForm(forms.Form, BasePluginForm):
|
2016-10-23 23:09:13 +00:00
|
|
|
"""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)
|