Logo
Explore Help
Sign In
norm/NP_CSM_Tool
1
0
Fork 0
You've already forked NP_CSM_Tool
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
8afdec139bbb45bfd597fa737cb650d2f61c4625
NP_CSM_Tool/app/forms.py

11 lines
309 B
Python
Raw Normal View History

Lots of good progress getting it setup. Need to figure out templating, easier calling of functions, and cleaner routing.
2023-02-17 16:59:42 -05:00
from flask_wtf import FlaskForm
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.
2023-03-13 17:23:56 -04:00
from wtforms.fields import SubmitField
from flask_codemirror.fields import CodeMirrorField
Lots of good progress getting it setup. Need to figure out templating, easier calling of functions, and cleaner routing.
2023-02-17 16:59:42 -05:00
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.
2023-03-13 17:23:56 -04:00
class TemplateForm(FlaskForm):
template_code = CodeMirrorField(
language='htmlembedded',
config={'lineNumbers': 'true'})
submit = SubmitField('Submit')
Lots of good progress getting it setup. Need to figure out templating, easier calling of functions, and cleaner routing.
2023-02-17 16:59:42 -05:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0+dev-138-gd21ce9fa07 Page: 128ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API