Example #1
0
class StudentOfficer_Form(Form):
    Image = GaeFileField(u'Image', validators=[validators.data_required()])
    Position = fields.TextField(u'Officer Position', validators=[validators.Required()])
    Name = fields.TextField(u'Officer Name', validators=[validators.Required()])
    Major = fields.TextField(u'Officer Major', validators=[validators.Required()])
    Grade = fields.TextField(u'Officer Grade', validators=[validators.Required()])
    Email = fields.TextField(u'Officer Email', validators=[validators.Required()])
Example #2
0
class TopTenAnswer_Form(Form):
    StudentName = fields.TextField(
        label=u'Student Name',
        validators=[validators.Required()],
    )
    Answer = fields.TextField(
        label=u'Answer',
        validators=[validators.Required()],
    )
Example #3
0
class HomepageSlide_Form(Form):
    Enabled = fields.BooleanField(u'Enabled')
    onHomepage = fields.BooleanField(u'onHomepage')

    Image = GaeFileField(u'Carousel Image',
                         validators=[validators.data_required()])
    Link = fields.TextField(u'URL')
    Title = fields.TextField(u'Page Title')
    Html = fields.TextAreaField(u'Page Content')
Example #4
0
class SemesterSeries_Form(Form):
    Image = GaeFileField(u'Image', validators=[validators.data_required()])
    Title = fields.TextField(u'Title', validators=[validators.Required()])
    Description = fields.TextAreaField(
        u'Description',
        validators=[validators.Required(),
                    validators.length(max=500)])
    Weeks = fields.FieldList(fields.FormField(WeekInfo_Form))
Example #5
0
class TopTen_Form(Form):
    QuestionDate = fields.DateField(
        label=u"Date of Question (yyyy-mm-dd)",
        validators=[validators.required()],
    )
    Question = fields.TextField(
        label=u'Question',
        validators=[validators.Required()],
    )
    Answers = fields.FieldList(
        fields.FormField(TopTenAnswer_Form),
        validators=[validators.Required()],
        min_entries=10,
        max_entries=10,
    )
Example #6
0
class StaffPosition_Form(Form):
    Name = fields.TextField(u'Name', validators=[validators.Required()])
    Image = GaeFileField(u'Image', validators=[validators.data_required()])
    Email = fields.TextField(u'Email', validators=[validators.Required()])
    Description = fields.TextAreaField(u'Description',
                                       validators=[validators.Required()])
Example #7
0
class GelGroup_Form(Form):
    Title = fields.TextField(u'Title', validators=[validators.required()])
    DayAndTime = DayAndTimeField(u'Day And Time', validators=[validators.required()], format=u'%A %I %p')
    Leaders = fields.TextField(u'Leaders', validators=[validators.required()])
    ContactEmail = fields.TextField(u'ContactEmail', validators=[validators.required()])
    Description = fields.TextAreaField(u'Description', validators=[validators.required(), validators.length(max=500)])
Example #8
0
class WeekInfo_Form(Form):
    Date = fields.TextField()
    Speaker = fields.TextField()
    Topic = fields.TextField()
    Location = fields.TextField()