Skip to content

Commit

Permalink
docs correction for SimpleFormView
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Feb 10, 2015
1 parent 6956e2b commit c2b33fe
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions docs/views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,6 @@ as well as custom validators. For this you can use ModelView instead.

To create a custom form view, first define your WTF form fields, but inherit them from F.A.B. *DynamicForm*.

from wtforms import StringField
from flask_babelpkg import lazy_gettext
from wtforms.validators import DataRequired
from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
from flask_appbuilder.forms import DynamicForm


class TestForm(DynamicForm):
TestFieldOne = StringField(lazy_gettext('Test Field One'), validators=[DataRequired()], widget=BS3TextFieldWidget())
TestFieldTwo = StringField(lazy_gettext('Test Field One'), validators=[DataRequired()], widget=BS3TextFieldWidget())

::

from wtforms import Form, StringField
Expand Down

0 comments on commit c2b33fe

Please sign in to comment.