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.
31 lines
862 B
31 lines
862 B
"""Describe File Form to describe files in the distribusi archive"""
|
|
|
|
from flask_wtf import FlaskForm
|
|
from wtforms import StringField, SubmitField, validators
|
|
from wtforms.validators import Length
|
|
|
|
class DescribeFileForm(FlaskForm):
|
|
"""DescribeFileForm selection form."""
|
|
|
|
alttext = StringField(
|
|
"Alt-text for this file:",
|
|
validators=[
|
|
validators.InputRequired(),
|
|
Length(3, 255),
|
|
],
|
|
)
|
|
searchtags = StringField(
|
|
"Add search tags, seperated by commas. No need for the '#' sign:",
|
|
validators=[
|
|
validators.InputRequired(),
|
|
Length(3, 500),
|
|
],
|
|
)
|
|
description = StringField(
|
|
"Description of this file:",
|
|
validators=[
|
|
validators.InputRequired(),
|
|
Length(3, 4096),
|
|
],
|
|
)
|
|
save = SubmitField("Save")
|
|
|