This commit is contained in:
Takeus committed 2025-02-04 23:13:32 +01:00
1 parent 602bb7d706
commit 9f9f90422a
7 files changed
+74 -25

No files matched your search

+2 -2
View File
@@ -8,11 +8,11 @@ class LoginForm(FlaskForm):
class NewPrefixForm(FlaskForm):
subnet = StringField(validators=[DataRequired(),IPAddress(ipv4=True),Length(max=128)])
prefix = IntegerField(validators=[DataRequired(),NumberRange(min=0,max=32)])
prefix = IntegerField(validators=[DataRequired(),NumberRange(min=20,max=32)])
description = StringField(validators=[Length(max=128)])
class NewAllocationForm(FlaskForm):
ipv4 = StringField(validators=[DataRequired(),IPAddress(ipv4=True),Length(max=128)])
host_name = StringField(validators=[DataRequired(),Length(max=128)])
host_name = StringField(validators=[Length(max=128)])
host_desc = StringField(validators=[Length(max=128)])
#host_type = SelectField(choices=[(0,'None'),(1,'Computer'),(2,'Server'),(3,'Virtual Machine'),(4,'Network Device'),(5,'Other')],validators=[DataRequired()])