"""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=[ Length(3, 255), ], ) searchtags = StringField( "Add search tags, seperated by commas. No need for the '#' sign:", validators=[ Length(3, 500), ], ) description = StringField( "Description of this file:", validators=[ Length(3, 4096), ], ) save = SubmitField("Save")