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

__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__copyright__ = 'Copyright (c) 2013 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__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.3.2
Versions
latest
0.3.2
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.