| 24 | |
| 25 | |
| 26 | class AllowlistAddForm(StarletteForm): |
| 27 | type = SelectField( |
| 28 | _l("Type"), |
| 29 | choices=[ |
| 30 | ("email", _l("Email")), |
| 31 | ("domain", _l("Domain")), |
| 32 | ("pattern", _l("Pattern (regex)")), |
| 33 | ], |
| 34 | validators=[DataRequired()], |
| 35 | ) |
| 36 | value = StringField(_l("Value"), validators=[DataRequired()]) |
| 37 | submit = SubmitField(_l("Add"), name="allowlist_add") |
| 38 | |
| 39 | |
| 40 | class AllowlistDeleteForm(StarletteForm): |
nothing calls this directly
no outgoing calls
no test coverage detected