niku-client/app/add_service_form.py

10 lines
345 B
Python
Raw Permalink Normal View History

2023-08-01 20:44:17 +00:00
from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, RadioField, SelectField
class AddServiceForm(FlaskForm):
name = StringField('name')
protocol = SelectField('protocol', choices=[('', "Don't Care"), ('tcp', 'TCP'), ('udp', 'UDP')], default='')
host = StringField('host')
port = IntegerField('port')