Source code for dash.contrib.plugins.video.forms

__all__ = ('VideoForm',)

from django import forms
from django.utils.translation import ugettext_lazy as _

from dash.base import DashboardPluginFormBase
from dash.widgets import BooleanRadioSelect

[docs]class VideoForm(forms.Form, DashboardPluginFormBase): """ Video form for ``VideoPlugin`` plugin. """ plugin_data_fields = [ ("title", ""), ("url", ""), ] title = forms.CharField(label=_("Title"), required=True) url = forms.URLField(label=_("URL"), required=True)
Read the Docs v: 0.2.4
Versions
latest
0.3.2
0.3
0.2.4
0.1.4
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.