mirror of https://github.com/MISP/misp-modules
12 lines
356 B
Python
12 lines
356 B
Python
|
from flask_wtf import FlaskForm
|
||
|
from wtforms.fields import (
|
||
|
StringField,
|
||
|
SubmitField,
|
||
|
)
|
||
|
from wtforms.validators import InputRequired, Length
|
||
|
|
||
|
|
||
|
class ExternalToolForm(FlaskForm):
|
||
|
name = StringField('Name', validators=[InputRequired(), Length(1, 64)])
|
||
|
url = StringField('Url', validators=[InputRequired()])
|
||
|
submit = SubmitField('Create')
|