from flask.ext.wtf import Form
from wtforms import TextField, SelectMultipleField, widgets
from wtforms.validators import Required
from app.models.author import Author


class BookForm(Form):
    name = TextField('name', validators=[Required()])
    authors = SelectMultipleField('Authors', choices=[(author.id, author.
        name) for author in Author.query.all()], widget=widgets.ListWidget(
        prefix_label=False), option_widget=widgets.CheckboxInput())

7db70dca8c268fed257c7535bf4e93dd2ad8ecdf
<mask token>

<mask token>


class BookForm(Form):
    <mask token>
    <mask token>

<mask token>


class BookForm(Form):
    name = TextField('name', validators=[Required()])
    authors = SelectMultipleField('Authors', choices=[(author.id, author.
        name) for author in Author.query.all()], widget=widgets.ListWidget(
        prefix_label=False), option_widget=widgets.CheckboxInput())

from flask.ext.wtf import Form
from wtforms import TextField, SelectMultipleField, widgets
from wtforms.validators import Required
from app.models.author import Author


class BookForm(Form):
    name = TextField('name', validators=[Required()])
    authors = SelectMultipleField('Authors', choices=[(author.id, author.
        name) for author in Author.query.all()], widget=widgets.ListWidget(
        prefix_label=False), option_widget=widgets.CheckboxInput())
