-
Notifications
You must be signed in to change notification settings - Fork 5
/
form_classes.py
76 lines (67 loc) · 2.64 KB
/
form_classes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileRequired
from wtforms import (StringField, PasswordField, BooleanField, SubmitField,
DateField, TextAreaField, SelectField)
from wtforms.validators import DataRequired, Required
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
remember_me = BooleanField('Remember Me')
submit = SubmitField('Sign In')
class CatInformation(FlaskForm):
date = DateField('Date', format='%Y-%m-%d')
name = StringField('Cat Name', validators=[DataRequired()])
date_of_birth = DateField('Date of Birth', format='%Y-%m-%d')
age = StringField('Age')
sex = SelectField('Sex', choices=[('M', 'M'), ('F', 'F')])
description = TextAreaField('Description')
sn = SelectField('S/N', choices=[('Yes', 'Yes'), ('No', 'No')])
shelter_name = StringField('Shelter Name')
shelter_id = StringField('Shelter ID')
photo = FileField('Cat Photo')
fiv_tested = SelectField('FIV Tested', choices=[(
'Positive', 'Tested Positive'), ('Negative', 'Tested Negative'), ('None', 'Not Tested')])
flv_tested = SelectField('FLV Tested', choices=[(
'Positive', 'Tested Positive'), ('Negative', 'Tested Negative'), ('None', 'Not Tested')])
fvrcp_vaccination_date = DateField(
'FVRCP Vaccination Date', format='%Y-%m-%d')
rabies_vaccination_date = DateField(
'Rabies Vaccination Date', format='%Y-%m-%d')
medical_notes = TextAreaField('Medical Notes')
medical_documents = FileField('Medical Documents')
behaviour_notes = TextAreaField('Behaviour Notes')
urgent = BooleanField('Urgent')
# INTAKE
petpoint_id = StringField('Petpoint ID')
outcome = TextAreaField('Outcome')
intake_date = DateField('Intake Date', format='%Y-%m-%d')
# FOSTER HOME
foster_placement_date = DateField('Placement Date', format='%Y-%m-%d')
foster_coordinator = StringField('Foster Coordinator')
foster_parent = StringField('Foster Parent')
location = StringField('Location')
submit = SubmitField('Submit')
'''
xProposal Date
xName
XDoB
xAge
xSex
xDescription
xS/N
xShelter Name
xShelter ID
-----Petpoint ID (Unique Identifier)
xImage
xFIV Tested (+/-) - Tested Positive, Tested Negative, Not Tested (default)
xFLV Tested (+/-) - Tested Positive, Tested Negative, Not Tested (default)
xFVRCP Vaccination Date
xRabies Vaccination Date
xMedcial Notes
xMedical Forms
xBehaviour Notes
-----Outcome - Entered into TCR program, euthanized, etc.
-----Intake Date
-----Foster Placement Date
-----Location - Dropdown
'''