| 117 | |
| 118 | |
| 119 | class StorageResetForm(StarletteForm): |
| 120 | name = HiddenField(_l("Storage name"), validators=[DataRequired()]) |
| 121 | confirm = StringField(_l("Confirmation"), validators=[DataRequired()]) |
| 122 | submit = SubmitField(_l("Reset"), name="reset_storage") |
| 123 | |
| 124 | def validate_confirm(self, field): |
| 125 | if field.data != self.name.data: # type: ignore |
| 126 | raise ValidationError(_("Storage name confirmation did not match.")) |
| 127 | |
| 128 | |
| 129 | class StorageProjectForm(StarletteForm): |
nothing calls this directly
no outgoing calls
no test coverage detected