distribusi-verse: medium-tech web app content management system for the web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
488 B

"""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")