crunk
6 months ago
5 changed files with 39 additions and 4 deletions
@ -0,0 +1,31 @@ |
|||||
|
"""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") |
@ -0,0 +1,2 @@ |
|||||
|
{% extends "base/base.html" %} |
||||
|
{% block main %} |
Loading…
Reference in new issue