forked from crunk/distribusi-verse
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.
22 lines
488 B
22 lines
488 B
3 years ago
|
"""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")
|