mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-03-17 14:30:22 +00:00
19 lines
528 B
Python
19 lines
528 B
Python
from django import forms
|
|
|
|
from fobi.base import BasePluginForm
|
|
|
|
|
|
class SampleTextareaForm(forms.Form, BasePluginForm):
|
|
"""SampleTextareaForm."""
|
|
|
|
plugin_data_fields = [
|
|
("name", ""),
|
|
("label", ""),
|
|
("initial", ""),
|
|
("required", False),
|
|
]
|
|
|
|
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)
|