Mar 04 2026: Implement customer's view functionalities - Phase 2
This commit is contained in:
+15
-1
@@ -94,6 +94,7 @@ class FacilityForm(FlaskForm):
|
||||
address = TextAreaField('Address', validators=[Optional()])
|
||||
contact_person = StringField('Contact Person', validators=[Optional(), Length(max=100)])
|
||||
contact_phone = StringField('Contact Phone', validators=[Optional(), Length(max=20)])
|
||||
project_id = SelectField('Project', coerce=int, validators=[Optional()])
|
||||
active = BooleanField('Active', default=True)
|
||||
|
||||
|
||||
@@ -174,4 +175,17 @@ class IssueUpdateForm(FlaskForm):
|
||||
result_photos = FileField('Result Photos', validators=[
|
||||
Optional(),
|
||||
FileAllowed(['jpg','jpeg','png','gif'], 'Images only.')
|
||||
])
|
||||
])
|
||||
|
||||
# ── Projects ─────────────────────────────────────────────────────────────────
|
||||
|
||||
class ProjectForm(FlaskForm):
|
||||
name = StringField('Project Name', validators=[DataRequired(), Length(max=255)])
|
||||
description = TextAreaField('Description', validators=[Optional()])
|
||||
project_manager_id = SelectField('Project Manager', coerce=int, validators=[Optional()])
|
||||
active = BooleanField('Active', default=True)
|
||||
|
||||
|
||||
class CustomerAssignmentForm(FlaskForm):
|
||||
user_id = SelectField('Customer User', coerce=int, validators=[DataRequired()])
|
||||
facility_id = SelectField('Facility Scope', coerce=int, validators=[Optional()])
|
||||
|
||||
Reference in New Issue
Block a user