mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
V1.0
This commit is contained in:
1 parent
9f9f90422a
commit
4870f0b089
12 files changed
+433
-68
No files matched your search
+14
-1
@@ -15,4 +15,17 @@ class NewAllocationForm(FlaskForm):
|
||||
ipv4 = StringField(validators=[DataRequired(),IPAddress(ipv4=True),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()])
|
||||
#host_type = SelectField(choices=[(0,'None'),(1,'Computer'),(2,'Server'),(3,'Virtual Machine'),(4,'Network Device'),(5,'Other')],validators=[DataRequired()])
|
||||
|
||||
class NewUserForm (FlaskForm):
|
||||
username = StringField(validators=[DataRequired(),Length(max=128)])
|
||||
password = PasswordField(validators=[DataRequired(),Length(max=128)])
|
||||
is_admin = SelectField(choices=[(0,'No'),(1,'Yes')],validators=[DataRequired()])
|
||||
|
||||
class ChangePasswordForm(FlaskForm):
|
||||
password = PasswordField(validators=[DataRequired(),Length(max=128)])
|
||||
is_admin = SelectField(choices=[(0,'No'),(1,'Yes')],validators=[DataRequired()])
|
||||
|
||||
class ChangeAllocationForm(FlaskForm):
|
||||
hostname = StringField(validators=[Length(max=128)])
|
||||
description = StringField(validators=[Length(max=128)])
|
||||
Reference in new issue
Block a user