So close! I'm able to use syntax highlighting AND grab the content with js (which then adds to a textarea), but the Flask for loop is only noticed on the first iteration. I can't grab the subsequent values. I need to find a way to dynamically find IDs.
This commit is contained in:
12
app/forms.py
12
app/forms.py
@ -1,8 +1,10 @@
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import StringField, PasswordField, BooleanField, SubmitField
|
||||
from wtforms.validators import DataRequired
|
||||
from wtforms.fields import SubmitField
|
||||
from flask_codemirror.fields import CodeMirrorField
|
||||
|
||||
class TemplateForm(FlaskForm):
|
||||
template_code = CodeMirrorField(
|
||||
language='htmlembedded',
|
||||
config={'lineNumbers': 'true'})
|
||||
submit = SubmitField('Submit')
|
||||
|
||||
class RequestForm(FlaskForm):
|
||||
apikey = StringField("Academy API Key", validators=[DataRequired()])
|
||||
submit = SubmitField("Submit")
|
||||
|
||||
Reference in New Issue
Block a user