forked from crunk/distribusi-verse
22 lines
488 B
Python
22 lines
488 B
Python
"""Form to save your CSS editor work."""
|
|
from wtforms import (
|
|
StringField,
|
|
TextAreaField,
|
|
SubmitField,
|
|
)
|
|
|
|
from wtforms import validators
|
|
from wtforms.validators import Length
|
|
from flask_wtf import FlaskForm
|
|
|
|
|
|
class EditorForm(FlaskForm):
|
|
"""Css editor form class."""
|
|
|
|
cssname = StringField(
|
|
"fill in a name for your css style:",
|
|
validators=[validators.InputRequired(), Length(5, 200)],
|
|
)
|
|
css = TextAreaField()
|
|
submit = SubmitField("Save")
|