ccpo can submit basic review
This commit is contained in:
22
atst/forms/ccpo_review.py
Normal file
22
atst/forms/ccpo_review.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from wtforms.fields.html5 import EmailField, TelField
|
||||
from wtforms.fields import StringField, TextAreaField
|
||||
from wtforms.validators import Required, Email
|
||||
|
||||
from .forms import ValidatedForm
|
||||
from .validators import Alphabet, PhoneNumber
|
||||
|
||||
|
||||
class CCPOReviewForm(ValidatedForm):
|
||||
comments = TextAreaField(
|
||||
"Comments",
|
||||
description="Add notes or comments explaining what changes are being requested or why further discussion is needed about this request.",
|
||||
)
|
||||
fname_mao = StringField("First Name", validators=[Required(), Alphabet()])
|
||||
lname_mao = StringField("Last Name", validators=[Required(), Alphabet()])
|
||||
email_mao = EmailField("Mission Owner e-mail (optional)", validators=[Email()])
|
||||
phone_mao = TelField(
|
||||
"Mission Owner phone number (optional)",
|
||||
validators=[Required(), PhoneNumber()],
|
||||
)
|
||||
fname_ccpo = StringField("First Name", validators=[Required(), Alphabet()])
|
||||
lname_ccpo = StringField("Last Name", validators=[Required(), Alphabet()])
|
Reference in New Issue
Block a user