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.
32 lines
813 B
32 lines
813 B
6 months ago
|
"""Describe File Form to describe files in the distribusi archive"""
|
||
|
|
||
|
from flask_wtf import FlaskForm
|
||
|
from wtforms import StringField, SubmitField
|
||
|
|
||
|
|
||
|
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")
|