flask-python-helm/forms.py
2020-12-15 22:58:35 +08:00

15 lines
868 B
Python

import os
from app import app
from flask_wtf import FlaskForm
from wtforms import BooleanField, StringField, PasswordField, TextField, IntegerField, TextAreaField, SubmitField, RadioField, SelectField
from wtforms.fields.html5 import DateField
from wtforms import validators, ValidationError
from wtforms.validators import InputRequired, Email, Length
from flask_bootstrap import Bootstrap
class deploySelectForm(FlaskForm):
ns = SelectField('ns', choices=[], coerce=str)
chart = SelectField('chart', choices=[])
version = SelectField('remember me') # Added if/when I want to add additional helm version options
records = SelectField('records', choices=[('10', '10'), ('20', '20'), ('30', '30'), ('40', '40'), ('50', '50'), ('100', '100'), ('150', '150'), ('200', '200'), ('256', '256 (max)')], default=['10'])
submitButton = SubmitField("Submit")